O'Reilly logo

Spatial Analytics with ArcGIS by Eric Pimpler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercise - creating a custom ArcGIS script tool with R

In this exercise, you'll build a custom ArcGIS script tool and attach it to an R script. The script will create a simple scatterplot from two variables selected from the Denver_Census_Tracts_Prj layer:

  1. Open ArcMap with the DenverDemographics map document file.
  2. Open the Catalog view and navigate to Toolboxes | My Toolboxes. Right-click on My Toolboxes and select New Toolbox. Call the toolbox DenverSpatialStats. We'll return to this new toolbox after we create the R script.
  3. Open the R Console window and navigate to File | New script.
  4. In the new script window, create a new function called tool_exec as shown in the following code:
        tool_exec = function(in_params, out_params)           {           }
  1. This ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required