February 2011
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28          

Authors' Committee

Chair:

Matt Blackwell (Gov)

Members:

Martin Andersen (HealthPol)
Kevin Bartz (Stats)
Deirdre Bloome (Social Policy)
John Graves (HealthPol)
Rich Nielsen (Gov)
Maya Sen (Gov)
Gary King (Gov)

Weekly Research Workshop Sponsors

Alberto Abadie, Lee Fleming, Adam Glynn, Guido Imbens, Gary King, Arthur Spirling, Jamie Robins, Don Rubin, Chris Winship

Weekly Workshop Schedule

Recent Comments

Recent Entries

Categories

Blogroll

SMR Blog
Brad DeLong
Cognitive Daily
Complexity & Social Networks
Developing Intelligence
EconLog
The Education Wonks
Empirical Legal Studies
Free Exchange
Freakonomics
Health Care Economist
Junk Charts
Language Log
Law & Econ Prof Blog
Machine Learning (Theory)
Marginal Revolution
Mixing Memory
Mystery Pollster
New Economist
Political Arithmetik
Political Science Methods
Pure Pedantry
Science & Law Blog
Simon Jackman
Social Science++
Statistical modeling, causal inference, and social science

Archives

Notification

Powered by
Movable Type 4.24-en


« Sen on "How Having Daughters Affect Judges' Voting" | Main | Mapping the Republican Field for 2012 »

4 February 2011

Crayola Colors in R

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:

crayola-R.png

And here is a simple example of how to use it:

hist(rnorm(1000), col = crayola["Granny Smith Apple"], border = "white", yaxt = "n")

granny-hist.png

Always remember, folks, playing with colors is a dangerous game. Use discretion.

Posted by Matt Blackwell at February 4, 2011 10:38 AM