Learn R Programming

RSEIS (version 4.2-4)

JGRAY: Gray scale Color Palette

Description

generate a gray scale color palette

Usage

JGRAY(n)

Value

n characters used for color palette

Arguments

n

number of colors to produce

Author

Jonathan M. Lees<jonathan.lees.edu>

Details

Creates a grey scale color palette suitable for replacing rainbow for grey shade plots.

See Also

shade.col, rainbow, colors

Examples

Run this code
pal <- JGRAY(100)
data(volcano)
image(volcano, col=pal)

Run the code above in your browser using DataLab