1
Introduction to Spatial Analysis with R Workshop
Instructor: Jeff Blossom jblossom@cga.harvard.edu
2
Our mission: We aim to help grow and sustain spatial research and teaching across campus and across disciplines through research, data, infrastructure, and training.
Location: CGIS Knafel basement. 1737 Cambridge St.
Contact: http://gis.harvard.edu/contactus
What Is Spatial Analysis
Spatial analysis types and questions
Common Analytical Procedure
Frame the question
Prepare the data
Choose a method
Process the data
Examine the results
Present the Results
Automation
The 1st law of Geography:
“I invoke the first law of geography: everything is related to everything else, but near things are
more related than distant things’’ (Tobler 1970).
Determining how near things are is important.
Proximity – a synonym for near.
6
Proximity Analysis
8
GIS Network Analysis – Driving distance and time analysis along a road network.
Overlay Analysis
new spatial data)
Overlay Analysis technique: �Spatial Join
GIS Overlay Analysis Technique: Spatial Join
Transfers the attributes from one feature class to another feature class, based on the spatial relationships between the features in the two feature classes.
For example, we have Boston crimes geocoded to their street intersections. What neighborhood is each address in?
GIS Overlay Analysis Technique: Spatial Join
Transfers the attributes from one feature class to another feature class, based on the spatial relationships between the features in the two feature classes.
For example, we have Boston crimes geocoded to their street intersections. What neighborhood is each address in?
Spatial Join command from the address intersection points to the neighborhood polygons does a “point in polygon” evaluation for
each point, and transfers the attributes of the polygon over to the point.
GIS Overlay Analysis Technique: Spatial Join
Transfers the attributes from one feature class to another feature class, based on the spatial relationships between the features in the two feature classes.
Spatial join can also answer the question: How many intersections are in each neighborhood?
N_hood_GIS | Count_Intersections |
South Boston | 54 |
Roxbury | 32 |
Hyde Park | 35 |
South Dorchester | 43 |
Back Bay | 34 |
Spatial Join command from neighborhood polygons to the address intersection points will summarize the total number of addresses per neighborhood.
Adjacency analysis
Identifies neighbors.
What counties border Macon County?
Network analysis
Network analysis: Service area calculation����������Answers the question: What area is within a certain distance or travel time of a specific location?.
http://desktop.arcgis.com/en/arcmap/latest/extensions/network-analyst/service-area.htm
Geostatistical Analysis
Statistical techniques used to analyze and predict the values of spatial phenomena (like pollution, or temperature) at unsampled locations based
Images from:
https://www.sciencedirect.com/science/chapter/referencework/abs/pii/B9780124095489091636n measured sample data.
Let’s do some spatial analysis with R!�1. Open a web browser and go to gis.Harvard.edu�2. Scroll down to Upcoming Events, and click on the Getting Started with Spatial Analysis in R.�3. Download the Exercise 1 word document, and open. Follow the directions with your instructor within this document.