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[
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
2 matches
Mail list logo