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.

Tuesday, April 25, 2017

An unorthodox approach to spatial clustering

I left a question on gis.stackexchange about an unorthodox approach to spatial clustering that came to my mind a couple of days ago. I would be glad to hear if you have any thoughts on this. If you have any comments/answers, this time I'll ask you to write them on the gis.stackexchange website.


Monday, April 24, 2017

There is a boom in bicycle research


Although we don't know how the 'bicycle literature' has been growing relative to all publications in transport/mobility, there is a good sign there is boom in bicycle research! The method used by Jennifer to identify the publications is not supper systematic but it's insightful anyway. Jennifer's blog post is a quick and interesting read.

credit: Jennifer Dill

Thursday, April 20, 2017

Quote of the day: programming



Monday, April 10, 2017

A glimpse into the future of autonomous vehicles

Cesar Hidalgo (Twitter) has shared this mesmerizing video by People's Daily, China. It shows hundreds of autonomous robots sorting parcels in a warehouse of a Chinese delivery company.

It makes you think about many things related the technology density of the Chinese economy and the coming changes in the labor market of China and beyond. The obvious thought that occurred to me, though, is how these warehouses can be thought as a super simplified beta-version of integrated systems of autonomous vehicles we might see in cities in 100 years form now... maybe 50.

Wednesday, April 5, 2017

Two new libraries for working with Spatial data in R

A quick heads up for those interested in using R for spatial analysis and mapping data. There are two relatively new libraries you might want to check out:

  • The first one is the ggspatial library, created by Dewey Dunnington. ggspatial is a great package that makes it super simple to create maps using ggplot. It uses a single geom_spatial() for all types of spatial objects (polygons, lines, dots, etc.) and it dispenses the use fortify(), making things much faster.


  • Another library some of you might find useful is sf (as in simple features), created by Edzer Pebesma. This library makes it much faster to conduct several spatial operations, like reading/writing data, intersecting spatial objects, computing shortest distance matrices etc. The sf library is integrated with ggplot2 for creating maps with geom_sf() and it also makes it easy to connect to spatial data bases. This promises to be a real game changer for spatial analysis in R.

Monday, April 3, 2017

A biograhical note

by Roz Chast for the New Yorker

Saturday, April 1, 2017

Google Self-Driving Bike




This is from last year, but we can always use it on April 1st :)