JGRAY | R Documentation |
generate a gray scale color palette
JGRAY(n)
n |
number of colors to produce |
Creates a grey scale color palette suitable for replacing rainbow for grey shade plots.
n characters used for color palette
Jonathan M. Lees<jonathan.lees.edu>
shade.col, rainbow, colors
pal <- JGRAY(100)
data(volcano)
image(volcano, col=pal)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.