NYC interactive zip-level map
31 Jan 2016In this post, I will briefly explore how to make an interactive, zipcode-level map of Manhattan an Brooklyn using ggplot2 and a few additional packages, such as: ggalt, ggiraph, ggthemes, viridis, choroplethr, choroplethrZip.
My motivation was to have an interactive map of the US, at a detailed (zip level) that I could overlay with some information on mouseover or click.
I combined the approach of a couple posts from hrbrmstr and arilamstein. Feel free to check them out for your reference!
If you want to see the .Rmd document, and the code used to generate this post, you can see the source.
As you can see, this is a very simple plot of the population density for the zipcodes in manhattan and brooklyn in 2012. This could be an interesting starting point to create similar maps of different types of socio-economic data: number of calls to 911 on a specific period, number of robberies reported, …
Let me know if you found it useful!

