QGIS is a cross-platform, free, open source software that has become one of the leading GIS tools in the market in recent years. In this recipe, you will learn the integration between R and QGIS to perform spatial data analysis by executing an external R algorithm from the QGIS processing toolbox.
Spatial data analysis with R and QGIS
Getting ready
In order to execute an R algorithm in QGIS, we have to activate R in QGIS and indicate the location of R binaries. In the QGIS interface, go to the Processing | Options… | Providers menu. Then, go to R scripts and mark the checkbox next to Activate, and in the R folder option, browse and select the folder where R is installed in your machine. Finally, click on OK:
Note that...