 

#  Crayola Colors in R 

 





February 04, 2011

 

 

[Kottke observes](http://kottke.org/11/02/crayon-colors) that the whole list of Crayola colors and their hex codes is on [Wikipedia](http://en.wikipedia.org/wiki/List_of_Crayola_crayon_colors), 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](http://people.fas.harvard.edu/~blackwel/crayola.RData) 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](http://www.iq.harvard.edu/blog/sss/archives/author/matt-blackwell/) at February 4, 2011 10:38 AM



 

 

 



 

 

 Share on:- [     Facebook ](#)
- [     Twitter ](#)
- [     Linkedin ](#)