Thursday, 2 March 2017

Resources on using R in QGIS for R users?


I'm finding that much of the QGIS documentation is oriented toward use of the GUI.


I want to be able to run R scripts in QGIS, but am having trouble finding a resource that will ground me in the relationship between QGIS and R data structures and how to pass structures between the two. A related question (Is it possible to create and run custom R scripts in QGIS 2.0?) directed me to this page: http://www.qgis.org/en/docs/user_manual/processing/3rdParty.html, but the I'm finding the documentation there is coming at things from more of a QGIS-expert direction than what I'm looking for.


Any suggestions?




Answer



The tool that I was looking for is the rpy extension of Python, which permits execution of R commands from the Python console.


Gene provided some useful suggestions in the previous answer, and then suggested rpy in response to my further questions.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...