Introduction to Spatial Data and ggplot2
For those starting out with spatial data in R, Robin Lovelace and I have prepared this tutorial (funded as part of the University of Leeds and UCL Talisman project). Here we introduce a range of analysis skills before demonstrating how you can deploy the powerful graphics capabilities of ggplot2 to visualise your results. There is also some “bonus” material at the end to show how you can use ggplot2 for descriptive statistics and so on. The tutorial covers:
-Introduction to ggplot2
-Adding Google and Stamen basemaps
-Clipping and joining spatial data
-Aggregating spatial data
-ggplot2 for descriptive statistics
Download the data you need from here.
This is a work in progress so we may add improvements as time goes on. We also have a few more tutorials in the pipeline that will be posted here in due course.