Question about R

1075
9
01-17-2017 08:43 AM
PROBERT68
Regular Contributor III

Has anyone been working  on R and ArcGIS ?

What is the pro and con for that ?

What do I need to know about R ?

 I'd like to learn about R and is there a training that can I sign up online ?

Thanks

Tags (1)
9 Replies
SteveLynch
Esri Regular Contributor

Go to R — ArcGIS 

MicahBabinski
Regular Contributor

Hi Robert,

Good question. I am in the midst of trying to learn some R right now. I am going with DataCamp to get the basics of R. My intent is to get the fundamentals and then see how I can apply it to spatial data.

*As I understand it*, R can store data (such as a shapefile) as a "data frame", which is a flexible structure for storing spatial and tabular information. From there, the data can be parsed, manipulated, and visualized in ways not easily accomplished with standard ArcGIS tools. Rasters can be stored in another R data structure called a matrix, which can also be processed and visualized in interesting ways.

My friend Jackson Voelkel has a nice presentation on benefits of and techniques for using R to analyze spatial data. He also has one specifically about web mapping with Leaflet in R: www.jacksonvoelkel.com/presentations/Rleaflet/

Hope that helps!

Micah

PROBERT68
Regular Contributor III

Thank you for that information.

0 Kudos
ChrisDonohue__GISP
MVP Frequent Contributor

The presentation is interesting.  The coding reminds me of back-in-the-day with Workstation ArcInfo!

Chris Donohue, GISP

0 Kudos
PROBERT68
Regular Contributor III

Have not had the time to see it, but when I clicked it and I see just the words with black . Was there any pictures or imagers there ?

0 Kudos
MicahBabinski
Regular Contributor

There should be. Use the left/right and up/down arrows to move through the presentation. That whole presentation was created with R, by the way!

PROBERT68
Regular Contributor III

I'm using Chrome so maybe there is no java in it...

0 Kudos
PROBERT68
Regular Contributor III

Never mind, figured it out... There is down arrow that let me to go step by step...Thanks...

MarjeanPobuda
Occasional Contributor

The R-ArcGIS Bridge was created to make working simultaneously in ArcGIS and R as seamless and easy as possible. The main benefit of using the bridge is that it allows you to have a workflow where you can map and perform analyses on your data in ArcGIS but then, if you need an analysis or wish to perform a data aggregation that is specific to R, you can easily transfer your data. In short, this works by using the arcgisbinding R package which allows you to directly communicate from ArcGIS to R (and vice versa) and transfer your ArcGIS data (be it shapefile, feature class, or table) into R as a data frame object. From here, the arcgisbinding package allows you to easily convert your data frame  object into an sp object (the desired data object for perform spatial analysis in R with the sp package), such as a spatial points data frame or spatial lines data frame, etc. You can perform any R function you wish on your data and if you need to, easily transfer it back to an ArcGIS data type and directly write it to the ArcGIS project you are working with to map your new results or to continue your analysis workflow. 

If you need an visual example, this is a demo video that shows the process I just described. 

The bridge does assume you have working knowledge of R. There are a plethora of free resources online from the R community to help you do this. My personal favorites are those by Hadley Wickham (R for Data Science and Advanced R). He has written some of the most widely used R packages and is a real powerhouse in the R community. However, if you prefer a different learning format there are typically courses on Coursera, such as this one, along with other similar sites. Finally, if you are looking for specific resources on using R with ArcGIS, there are some web courses and a Learn Lesson scheduled to come out in February shortly before Dev Summit. 

Hope this helps.