powered by
generate a gray scale color palette
JGRAY(n)
n characters used for color palette
number of colors to produce
Jonathan M. Lees<jonathan.lees.edu>
Creates a grey scale color palette suitable for replacing rainbow for grey shade plots.
shade.col, rainbow, colors
pal <- JGRAY(100) data(volcano) image(volcano, col=pal)
Run the code above in your browser using DataLab