Tufte style charts in R

Posted to Coding  |  Tags: , ,  |  Nathan Yau

Lukasz Piwek is chipping away at a collection of Tufte-style charts using R, along with the code snippets. Fittingly, the project is called Tufte in R. The Tufte stuff is nice and all, but that’s not why I like this project. Two reasons.

The first is that there’s a misconception that R charts have to look a certain way. I already showed how that’s not the case, and it’s nice to see it from another angle.

The second reason is that Piwek makes each chart using the three main graphical systems in R: base, lattice, and ggplot2, showing the flexibility that all three allow. At the end of the day, these are tools, and if you know what you’re doing, you can make what you want. [Thanks, Lukasz]

Favorites

Watching the growth of Walmart – now with 100% more Sam’s Club

The ever so popular Walmart growth map gets an update, and yes, it still looks like a wildfire. Sam’s Club follows soon after, although not nearly as vigorously.

A Day in the Life of Americans

I wanted to see how daily patterns emerge at the individual level and how a person’s entire day plays out. So I simulated 1,000 of them.

Marrying Age

People get married at various ages, but there are definite trends that vary across demographic groups. What do these trends look like?

Shifting Incomes for American Jobs

For various occupations, the difference between the person who makes the most and the one who makes the least can be significant.