15

I am trying to learn R generally and making statistics for maps. I found some useful tricks for making maps with it but it is not the best you can do. My everyday GIS program is ArcGIS. How I can use R in ArcGIS? A tool I use is the GME plugin. Is this the only way?

I tried to use R in QGIS but a plugin I found never worked.

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
Vassilis
  • 3,444
  • 7
  • 44
  • 56

3 Answers3

12

Regarding R in general I'd really recommend having a look at Applied Spatial Data Analysis with R book. It offers very good introduction to spatial concepts within R framework. And webpage provides lots of code snippets and data to practice what you read about.

Regarding coupling R and ArcGIS specifically, Python is one of the options here. Have a look at these two presentations for general overview.

There are some tools and a walk-trough provided by ESRI Resource Center that might be good starting point for developing your own projects.

You might also want to run your geoprocessing scripts from within R with RPyGeo package.

radek
  • 10,579
  • 12
  • 86
  • 121
4

I'm not sure of the specific interaction you're looking for between a GIS GUI and R, but I'll mention a couple of seemingly relevant options:

  • A Practical Guide to Geostatistical Mapping covers moving fluidly between R, SAGA GIS and Google Earth for analyzing complex geostatistical problems.
  • The spgrass6 package allows interaction between GRASS data and R, which likewise can be accessed in QGIS via the QGIS GRASS plugin.
scw
  • 16,391
  • 6
  • 64
  • 101
  • 1
    Yes, I know about this guide and I think it's very useful. However, I had some difficulties and when I asked them for help they didn't respond. – Vassilis Nov 26 '10 at 10:16
1

There is a an existing standalone tool called GeoDa that enables analysis of spatial data using R (and it displays the spatial data within the program). I haven't used it recently, but previously you could install certain packages to perform analysis.

I've also seen some very nice spatial analysis using the ggplot2 package.

djq
  • 16,297
  • 31
  • 110
  • 182
  • GeoDa is its own software independent of the R stats package. But that same center did create the spdep package for R and maintains tutorials on using that package in R (along with other tutorials on spatial regression in general and using GeoDa). Link here, http://geodacenter.asu.edu/learning/tutorials – Andy W Dec 01 '10 at 18:03
  • It has been some time since I used it, but I thought you could also add additional R packages to Geoda. I updated my answer to clarify that it is standalone (and I realize it is a slightly tangential answer to the posters original question). – djq Dec 01 '10 at 19:59
  • You can't add R libraries to GeoDa, but the spdep R library does have the ability to read gal neighbor files produced by GeoDa. You can do everything in R that you can in GeoDa, but GeoDa is nice for its interactive brushing/linking/visualization and everything is GUI based. Even if your only interested in R the tutorials for GeoDa are worth to read just for an intro to spatial regression modelling. – Andy W Dec 03 '10 at 01:57