[R] Colormap that look good in gray scale
thibert
xavier.thibert-plante at mail.mcgill.ca
Wed Mar 4 22:29:56 CET 2009
Thanks,
Here is my partial solution, from what you suggested me:
library(TeachingDemos)
z<-colors()
zz<-col2grey(z)
#index sorted
zzz<-sort(zz,index.return = TRUE)$ix
x<-z # colors in order or their greyscale
y<-z # greyscale sorted in gradient
for (i in 1:length(z)){
x[i]<-z[zzz[i]]
y[i]<-zz[zzz[i]]
}
myCol<-round(seq(from=1,to=length(x),length.out=10))
myCol<-x[myCol]
I then look at it and change to colors that are too similar for another
value close in geyscale.
--
View this message in context: http://www.nabble.com/Colormap-that-look-good-in-gray-scale-tp22336097p22339785.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list