Mapping in R - using ggplot2, part two In the previous tutorial we looked at getting data from web APIs in JSON and GeoJSON formats to create a simple map.
This time we’ll be adapting code from Timo Grossenbacher to make our map more attractive.
Getting started We need to reload the data again, so we’re going to get a different number of signatures than last time.
I’m going to run this in one block and assume you can follow along, if not go back to the previous post.
Mapping in R - using ggplot2 The Revoke Article 50 petition got my colleague and all-round codemeister Dr Martin Chorley and I talking.
We started thinking about ways that we could see what the patterns for people signing were like.
It was well into the millions when I started playing with ways of visualising where people who voted were located. The site can map all of the signatures (5,962,824 at the time of writing), but it also has an option to get the data in a machine-friendly json format.