[R] color scale mapped to B/W

From: Michael Friendly <friendly_at_yorku.ca>
Date: Fri, 06 Jun 2008 16:37:28 -0400


In an R graphic, I'm using

cond.col <- c("green", "yellow", "red")
to represent a quantitative variable, where green means 'OK', yellow represents 'warning'
and red represents 'danger'. Using these particular color names, in B/W, red is darkest
and yellow is lightest. I'd like to find color designations to replace yellow and green so
that when printed in B/W, the yellowish color appears darker than the greenish one.

Is there some tool/code I can use to find these? i.e., something to display a grid
of color swatches with color codes/names I can look at in color and B/W to decide?

t hanks,

-- 
Michael Friendly     Email: friendly AT yorku DOT ca 
Professor, Psychology Dept.
York University      Voice: 416 736-5115 x66249 Fax: 416 736-5814
4700 Keele Street    http://www.math.yorku.ca/SCS/friendly.html
Toronto, ONT  M3J 1P3 CANADA

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 06 Jun 2008 - 21:17:43 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 07 Jun 2008 - 05:30:39 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive