I’m thoroughly enjoying gathering data and writing the scripts for the maps I’m going to share in my upcoming Women in Tech Summit workshop. I’m starting with world-level maps, then will move to US and then more local. A main challenge is that there are lots of different ways to draw maps in R. My personal favorite is to use ggplot2. I have seen there is a choroplethr package, but I haven’t tried that yet.
Here’s my latest map:
It’s based on the wrld_simpl SpatialPolygonsDataFrame, and I merged in data from the World Bank Development Indicators. Next up: gender differences in economic and education outcomes across the US. Whee!
This map plots grocery stores with at least 30 employees, as of 2008. The map begins with a black and white Google terrain map and plots locations by latitude and longitude coordinates. I am working on getting more current data, but I can say that the food deserts haven’t changed much.
Here’s the code I used. This requires the ggmap library.