powered by
generate a gray scale color palette
JGRAY(n)
number of colors to produce
n characters used for color palette
Creates a grey scale color palette suitable for replacing rainbow for grey shade plots.
shade.col, rainbow, colors
# NOT RUN { pal <- JGRAY(100) data(volcano) image(volcano, col=pal) # }
Run the code above in your browser using DataLab