Skip to content

Instantly share code, notes, and snippets.

@cdesante
Created November 21, 2012 01:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdesante/4122464 to your computer and use it in GitHub Desktop.
Save cdesante/4122464 to your computer and use it in GitHub Desktop.
Thanksgiving
toInstall <- c("ggplot2")
if(doInstall){install.packages(toInstall, repos = "http://cran.r-project.org")}
lapply(toInstall, library, character.only = TRUE)
library(ggplot2)
Turkey <- read.csv("http://www.oberlin.edu/faculty/cdesante/assets/downloads/turkey.csv")
ggplot(data = Turkey) + geom_tile(aes(x = Happy, y = Thanksgiving, fill=Turkey.Colors,
width=1))+ scale_fill_identity() + theme_bw()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment