Using R and ArcGIS to model water quality in rivers

4088
5
06-23-2016 01:49 PM
SteveKopp
Esri Contributor

This video from the 2015 Users Conference provides a quick illustration of work to integrate the R project for statistical computing and ArcGIS. This demonstration uses the SSN package for modeling stream network statistics with geoprocessing tools in ArcMap. This connection is enabled by the open source R-ArcGIS bridge.

3 min.

5 Replies
larryzhang
Occasional Contributor III

Thanks for nice demo, Steve,

I am wondering where we can get ArcGIS geoprocessing tools of SSN package in your video.

0 Kudos
SteveKopp
Esri Contributor

Thanks Larry. Erin Peterson, coauthor of the SSN package, at Queensland Univ of Technology, was instrumental in helping us create this demo and helping with the corresponding GP tools that you see calling R. Unfortunately these tools were never completed to the extent that they were ready to share. If you want to know more about the R functionality behind it, the SSN doc is pretty comprehensive and there are good supporting tools to help build the network attributes.

If you're just looking for examples of GP tools calling R, there are some example on GitHub, and we have some new training materials in the works. We and are also working with some users on additional community toolbox contributions and looking for more collaborators.

0 Kudos
larryzhang
Occasional Contributor III

Thanks for your reply and answer, Steve,

Yes, looking for more practical examples on this aspect (GP tools from base R codes)...

In fact, we have been learning and using R statistics within ArcGIS for geospatial data analytics, but more interested in the conversion of ArcGIS GP tools from R statistics at the current stage.   ....

For data analytics (incl. geo analytics), considering heavily using R (more than others like Python, Java) over Hadoop and SAP Hana in our practice, just consult some of relevant questions, Steve,

  • In addition to CRAN R (base), any plan for R-ArcGIS Bridge to directly support Microsoft R Open, even standalone Microsoft R Server for Hadoop (Apache Spark), in the middle or long term?
  • For data analytics within ArcGIS over hadoop (Spark, MapReduce), any plan for both R (R-ArcGIS) and Java/ Python (GIS for Hadoop) to closely coordinate on this aspect, or will both do in parallel?
  • Will ArcGIS 10.5 support the Enterprise GDB in SAP Hana? If not, what about 10.6 or later?

Regards,

++++++++++++++++++++++++++++

References for clarification, if any:

0 Kudos
SteveKopp
Esri Contributor

Larry,

Yes, the R-ArcGIS bridge works with Microsoft R Open and we are collaborating with Microsoft to include ArcGIS in their Data Science VM.

Additionally, our big data analytics project is looking to expose an API for Python and Scala, likely 2017.

Hana support is not part of 10.5, that is being worked on and is slated for mid-2017 release.

Regards,

Steve

larryzhang
Occasional Contributor III

Thanks a lot for you guys efforts. All are moving on right track, which will definitely make our operations more productive, even more innovative ...

Yes, as you pointed out, we can directly use 'arcgisbinding' with MRO in RStudio.

For unknown reasons, however, we couldn't 'arcgisbinding' via R or MRO within Microsoft Visual Studio (R Tools) 2015. The same issue exists for Anaconda (R Tools).

In addition, regarding Conda Python to access/ import ArcPy (from ArcGIS Pro 1.3) in Python IDEs, one (Visual Studio 2015) does work, but other (Anaconda) does not, in our case. https://arcpy.wordpress.com/2016/10/21/conda-and-arcgis-pro/

Looking forward to seamless integration of ArcPy (ArcGIS Pro, ArcGIS) within major IDEs (Python and R - MRO & MRS), especially in Visual Studio and Anaconda, which will fully support Python and R (MRO, MRS) together.

Regards,

0 Kudos