﻿{"id":8899,"date":"2019-06-12T06:34:28","date_gmt":"2019-06-12T04:34:28","guid":{"rendered":"http:\/\/www.sigterritoires.fr\/?p=8899"},"modified":"2019-06-12T08:25:48","modified_gmt":"2019-06-12T06:25:48","slug":"using-r-in-qgis-processing","status":"publish","type":"post","link":"https:\/\/www.sigterritoires.fr\/index.php\/en\/using-r-in-qgis-processing\/","title":{"rendered":"Using R in QGis processing"},"content":{"rendered":"\n<p>Although R is essentially a set\nof statisticals, its use has been extended to a number of\nareas, such as natural language processing. This\nlibrary\npossesses\nalso\nsolic tools of spatial analysis,\nincluding analysis of the distributions of points and the Bayesian\ngeostatical modelling. It is possible to read and manage a\nvariety\nof vector and raster data, including shapefiles, NetCDF and GDAL.\n<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Traditional GIS programs often\nhave\nbeen limited by &nbsp; their spatial statistics and their analytical capacity were relatively\nminor\n, including a small range of integrated\nfunctions, forcing users to use other platforms for advanced analysis,\nmodelling and simulation. ESRI made the\nacquisition of the MapStudio program from the University of Minsk, which from &nbsp;2001 has become the Geostatistical Analyst\nextension of ArcGis . <\/p>\n\n\n\n<p>With R, many popular statistical proceedings\nand\nmore advanced analyses, including a variety\nof simulation applications , can be\napplied\ndirectly\nin\ntools such as QGIS. <\/p>\n\n\n\n<p><strong>How to install R for QGis.<\/strong>\n<\/p>\n\n\n\n<p>No need to rush to the QGis processing\npanel to find R. It is not part of the processing providers included\nwith the QGis installation. <\/p>\n\n\n\n<p>You have to download\nand\ninstall R on your computer before configuring QGis. <\/p>\n\n\n\n<p>Here is the link to download R: <a href=\"https:\/\/translate.google.com\/translate?hl=fr&amp;prev=_t&amp;sl=fr&amp;tl=en&amp;u=https:\/\/cran.r-project.org\/bin\/windows\/base\/\">https:\/\/cran.r-project.org\/bin\/windows\/base\/<\/a>\n<\/p>\n\n\n\n<p>Once downloaded , double click on\nthe file <strong><em>R-3.3.2-win.exe<\/em><\/strong> to\ninstall R on your <strong><em>computer<\/em><\/strong> . <\/p>\n\n\n\n<p>The program installs R in the directory <strong><em>C:\n\\ Program Files \\ R \\ R-3.3.2<\/em><\/strong> <\/p>\n\n\n\n<p><strong>How to configure the<\/strong>\n<strong>QGis<\/strong>\n<strong>Processing<\/strong>\n<strong>Options<\/strong>\n\n\nTo configure <strong>R<\/strong> , open the window\nOptions\ntreatments <strong><em>(treatments<\/em><\/strong><strong><em>-&gt; Options &#8230;)<\/em><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"637\" height=\"282\" data-attachment-id=\"8900\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/using-r-in-qgis-processing\/121-6\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/121.png?fit=637%2C282&amp;ssl=1\" data-orig-size=\"637,282\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"121\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/121.png?fit=637%2C282&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/121.png?resize=637%2C282&#038;ssl=1\" alt=\"\" class=\"wp-image-8900\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/121.png?w=637&amp;ssl=1 637w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/121.png?resize=300%2C133&amp;ssl=1 300w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/figure>\n\n\n\n<p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nOpen <strong><em>Treatment<\/em><\/strong><strong><em>providers<\/em><\/strong><strong><em>-&gt; R scripts<\/em><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"420\" data-attachment-id=\"8901\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/using-r-in-qgis-processing\/122-6\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/122.png?fit=646%2C424&amp;ssl=1\" data-orig-size=\"646,424\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"122\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/122.png?fit=640%2C420&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/122.png?resize=640%2C420&#038;ssl=1\" alt=\"\" class=\"wp-image-8901\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/122.png?w=646&amp;ssl=1 646w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/122.png?resize=300%2C197&amp;ssl=1 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p>Check the <strong><em>Activate<\/em><\/strong> box to\nactivate the option R and for it to appear in\nthe panel Processing . <\/p>\n\n\n\n<p>If you have a\n64bits Windows version, you can check\nthe box <strong><em>Use the 64-bit version<\/em><\/strong> . If you\nhave\na\n32-bit post, only the 32-bit version of R is installed\n. If you have a\n64-bit computer, both versions (32 and 64 bits) are installed\n. If you do not check the box you will\nuse the same 32-bit version if your\nPC is a 64 bit. <\/p>\n\n\n\n<p>You have to configure the\ndirectory with the library R for QGis. This\ndirectory , <strong><em>rlibs<\/em><\/strong> lies in\n<strong><em>C: \/ User \/ your<\/em><\/strong> <strong><em>username<\/em><\/strong> <strong><em>\/.qgis2\/processing<\/em><\/strong>\n<\/p>\n\n\n\n<p>if it does not exist , create\na\nrepertoire\n<strong><em>rscripts<\/em><\/strong> beside <strong><em>rlibs<\/em><\/strong>\nand\nindicate this repertoire in\nAs\n<strong><em>Scripts Directory R.<\/em><\/strong> <\/p>\n\n\n\n<p>Point the R directory to the directory installation\n, default <strong><em>C: \\ Program Files \\ R \\\nR-3.3.2<\/em><\/strong> <\/p>\n\n\n\n<p>Click OK to close the window Treatments\nOptions. \n\nYou have now\nthe provider R that appears in the processing panel, with\ntwo sub-items: \n\n\n\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"476\" height=\"318\" data-attachment-id=\"8902\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/using-r-in-qgis-processing\/123-6\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/123.png?fit=476%2C318&amp;ssl=1\" data-orig-size=\"476,318\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"123\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/123.png?fit=476%2C318&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/123.png?resize=476%2C318&#038;ssl=1\" alt=\"\" class=\"wp-image-8902\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/123.png?w=476&amp;ssl=1 476w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/123.png?resize=300%2C200&amp;ssl=1 300w\" sizes=\"auto, (max-width: 476px) 100vw, 476px\" \/><\/figure>\n\n\n\n<p>The first <strong><em>Create new R script<\/em><\/strong>\nopens\nan\nediting window or you\ncan\ntype a Python script. If you have inputs\nto set for execution , this is the moment to do it. <\/p>\n\n\n\n<p>The second , <strong><em>Get R scripts from on-line scripts\ncollection<\/em><\/strong> , allows you to use Python scripts ready\nto use with the adequate processing windows already\nconfigured . <\/p>\n\n\n\n<p>Let&rsquo;s see an example\n. You want to carry\nout an histogram R for a field of a\n&nbsp;vector layer . \n\nDouble- click on <strong><em>Get R\nscripts from on-line scripts collection<\/em><\/strong> to open the window <strong><em>Get<\/em><\/strong><strong><em>scripts<\/em><\/strong><strong><em>and<\/em><\/strong><strong><em>models:<\/em><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"423\" data-attachment-id=\"8903\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/using-r-in-qgis-processing\/124-6\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/124.png?fit=833%2C551&amp;ssl=1\" data-orig-size=\"833,551\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"124\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/124.png?fit=640%2C423&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/124.png?resize=640%2C423&#038;ssl=1\" alt=\"\" class=\"wp-image-8903\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/124.png?w=833&amp;ssl=1 833w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/124.png?resize=300%2C198&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/124.png?resize=768%2C508&amp;ssl=1 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nOpen item <strong><em>Not<\/em><\/strong><strong><em>installed<\/em><\/strong> : &nbsp;&nbsp;\n\n\n\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"426\" data-attachment-id=\"8904\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/using-r-in-qgis-processing\/125-6\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/125.png?fit=827%2C551&amp;ssl=1\" data-orig-size=\"827,551\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"125\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/125.png?fit=640%2C426&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/125.png?resize=640%2C426&#038;ssl=1\" alt=\"\" class=\"wp-image-8904\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/125.png?w=827&amp;ssl=1 827w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/125.png?resize=300%2C200&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/125.png?resize=768%2C512&amp;ssl=1 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p>Search the tool <strong><em>Histogram<\/em><\/strong>\n, check the corresponding box and click\n<strong><em>OK.<\/em><\/strong> \n\nWith version 2.18.2 which I\nuse, the processing window will not update immediately. If you open\nthe window again <strong><em>Get<\/em><\/strong><strong><em>scripts<\/em><\/strong><strong><em>and<\/em><\/strong><strong><em>templates<\/em><\/strong> you\nwill\nsee a new item in <strong><em>Update<\/em><\/strong><strong><em>available<\/em><\/strong> (in the case of\nthe histogram) or item <strong><em>Installed<\/em><\/strong> .\n&nbsp;\n\n\n\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"425\" data-attachment-id=\"8905\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/using-r-in-qgis-processing\/126-17\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/126.png?fit=823%2C547&amp;ssl=1\" data-orig-size=\"823,547\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"126\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/126.png?fit=640%2C425&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/126.png?resize=640%2C425&#038;ssl=1\" alt=\"\" class=\"wp-image-8905\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/126.png?w=823&amp;ssl=1 823w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/126.png?resize=300%2C199&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/126.png?resize=768%2C510&amp;ssl=1 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nWhen you close\nthis\nwindow\n, the R processing window in the panel is updated,\nand your new tool is\nnow\navailable\nunder <strong><em>User<\/em><\/strong><strong><em>R script<\/em><\/strong><strong><em>-&gt; Histogram<\/em><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"487\" height=\"357\" data-attachment-id=\"8906\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/using-r-in-qgis-processing\/127-5\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/127.png?fit=487%2C357&amp;ssl=1\" data-orig-size=\"487,357\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"127\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/127.png?fit=487%2C357&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/127.png?resize=487%2C357&#038;ssl=1\" alt=\"\" class=\"wp-image-8906\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/127.png?w=487&amp;ssl=1 487w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/127.png?resize=300%2C220&amp;ssl=1 300w\" sizes=\"auto, (max-width: 487px) 100vw, 487px\" \/><\/figure>\n\n\n\n<p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nIf\nyou double click on the tool , you will get the settings window\nthat opens: &nbsp;\n\n\n\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"556\" data-attachment-id=\"8907\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/using-r-in-qgis-processing\/128-4\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/128.jpg?fit=1024%2C556&amp;ssl=1\" data-orig-size=\"1024,556\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"128\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/128.jpg?fit=640%2C348&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/128.jpg?fit=525%2C285&amp;ssl=1\" alt=\"\" class=\"wp-image-8907\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/128.jpg?w=1024&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/128.jpg?resize=300%2C163&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/128.jpg?resize=768%2C417&amp;ssl=1 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nWhen you click\non <strong><em>Run<\/em><\/strong> , the processing is performed : \n\n\n\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"548\" data-attachment-id=\"8908\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/using-r-in-qgis-processing\/129-4\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/129.png?fit=1024%2C548&amp;ssl=1\" data-orig-size=\"1024,548\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"129\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/129.png?fit=640%2C343&amp;ssl=1\" src=\"https:\/\/i2.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/129.png?fit=525%2C281&amp;ssl=1\" alt=\"\" class=\"wp-image-8908\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/129.png?w=1024&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/129.png?resize=300%2C161&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/129.png?resize=768%2C411&amp;ssl=1 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p>If you are not familiar with R, this\nis the easiest way to start using the tools that R puts at your disposal.\n\n\nIf you make a\nright\nclick on the tool in the processing panel, you\ncan\nselect\nthe\noption <strong><em>Edit<\/em><\/strong><strong><em>the script<\/em><\/strong>\nto see the construction of the Python script: \n\n\n\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"457\" data-attachment-id=\"8909\" data-permalink=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/using-r-in-qgis-processing\/1210-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/1210.png?fit=729%2C521&amp;ssl=1\" data-orig-size=\"729,521\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"1210\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/1210.png?fit=640%2C457&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/1210.png?resize=640%2C457&#038;ssl=1\" alt=\"\" class=\"wp-image-8909\" srcset=\"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/1210.png?w=729&amp;ssl=1 729w, https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2019\/06\/1210.png?resize=300%2C214&amp;ssl=1 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p>Here it is!. We have\nhalf-opened a door for you to discover\nthe possibilities that R can bring you. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Although R is essentially a set of statisticals, its use has been extended to a number of areas, such as natural language processing. This library possesses also solic tools of spatial analysis, including analysis of the&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"give_campaign_id":0,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1260],"tags":[],"class_list":["post-8899","post","type-post","status-publish","format-standard","hentry","category-non-classe-en"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p6XU0A-2jx","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/8899","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/comments?post=8899"}],"version-history":[{"count":0,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/8899\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media?parent=8899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/categories?post=8899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/tags?post=8899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}