Wednesday, April 26, 2017

Map of Population Density Lines in R

If you are familiar with this famous Joy Division cover, you might remember that last year we shared a link that shows you how to reproduce the cover using R ggplot2. If you are a big fan of Joy Division and R, you should know that there is an R package just for that (by @mikefc).



About three years ago in 2014, James Cheshire created the Population Lines Print, a stylized map using lines to show population density in the world. It uses roughly the same data visualization style used in the Joy Division cover. 

credit: James Cheshire


How can you create a nice-looking map like this? Ask no more. James has recently shared the R script and a bit of the history behind his mapHenrik Lindberg has also generously written a gist with a simple and reproducible code to create a map with the same style showing the distribution of the population density in Europe, using R and ggplot2.

and you get this:

credit: Henrik Lindberg

UPDATE: Carson Sievert‏ shows how you can add two (2!) more lines of code to make this map interactive.