4 February 2011
Kottke observes that the whole list of Crayola colors and their hex codes is on Wikipedia, which got me thinking that it might be useful to have some colors to spruce up R graphics. So, I went ahead and created a convenient crayola vector to access all 133 standard Crayola colors. Here are all the colors in R:
And here is a simple example of how to use it:
hist(rnorm(1000), col = crayola["Granny Smith Apple"], border = "white", yaxt = "n")
Always remember, folks, playing with colors is a dangerous game. Use discretion.
Posted by Matt Blackwell at February 4, 2011 10:38 AM