NYT uses R to map the 1%

January 17, 2012
By

(This article was first published on Revolutions, and kindly contributed to R-bloggers)

Last Saturday, the New York Times published a feature article on the wealthiest 1% of Americans. The on-line version of the article included interactive features like this interactive map showing where your household ranks in the country and in local regions. The print edition, however, included some different (and necessarily static) representations of US wealth data, such as this map of where the wealthiest 1% live:

NYT-1-percent-map

(Image credit: New York Times, January 14 2002.)

Kevin Quealy, graphics editor at the New York Times, used R to help create this chart. The process began with an initial proof of concept, which used R's maptools package and required five lines of R code. 

Nyt-one-percent-POC

The original plan was to use ArcMap to generate the chart, but ArcView lacks the flexibility of styling the output that R has. Later iterations added color and algorithmically moved the labels around for legibility, and some final tweaking outside of R led to the chart in the print edition.

Interestingly, the chart doesn't appear in the on-line edition of the NYT. I knew that some features like interactive charts, were online only, but I wasn't aware that the reverse was also true, and that special content was made only for the print edition. Quealy points out that this is a necessity:

This is a good example, I think, of using each medium to its best potential, meeting the design constraints of each. More and more, this means making totally separate versions of things – admittedly, it frequently takes twice the time and energy – but the mediums are just so different that works well in one just doesn’t work well in another. 

For the full story of how this lovely chart was created, check out Kevin Quealy's tubmlr linked below.

chartsnthings: Before, During and After: The Richest 1 Percent

To leave a comment for the author, please follow the link and comment on his blog: Revolutions.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Tags: , , ,

Comments are closed.