On Wed, 4 Mar 2009, thibert wrote:
Hi,
I am looking for a colormap (in color) that look like a gradient in gray
scale. It is to allow people without color printer to print the color graph
and have something meaningful in gray scale.
It can be something like this
plot(1:6,col=c(1,7,5,3,2,4),pch=c(1,20,20,20,20,20))
but with an arbitrary number of different colors, not just six.
There is some discussion of this in our manuscript
Achim Zeileis, Kurt Hornik, and Paul Murrell
Escaping RGBland: Selecting colors for statistical graphics
which is forthcoming in CSDA (Computational Statistics & Data Analysis),
for a preprint see
http://statmath.wu-wien.ac.at/~zeileis/papers/Zeileis+Hornik+Murrell-2008.pdf
This discusses choice of the color, especially for shading areas. If you
want to use this for shading points or lines, I would recommend to use
relatively dark and colorful colors and different plotting characters.
R packages that provide useful tools for coloring graphics include
colorspace, RColorBrewer, ggplot2, and plotrix.
hth,
Z
Thanks
--
View this message in context:
http://www.nabble.com/Colormap-that-look-good-in-gray-scale-tp22336097p22336097.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
R-help@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.
______________________________________________
R-help@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.