Skip to content

Instantly share code, notes, and snippets.

View nullepart's full-sized avatar

François-Philippe Dubé nullepart

  • Gatineau, Québec
View GitHub Profile
@mmparker
mmparker / tbwaffles.r
Created November 11, 2011 17:38
Example waffles charts in R using ggplot2
library(ggplot2)
# Here's some data I had lying around
tb <- structure(list(region = c("Africa", "Asia", "Latin America",
"Other", "US-born"), ncases = c(36L, 34L, 56L, 2L, 44L)), .Names = c("region",
"ncases"), row.names = c(NA, -5L), class = "data.frame")