Learn R Programming

RSEIS (version 3.7-4)

JGRAY: Gray scale Color Palette

Description

generate a gray scale color palette

Usage

JGRAY(n)

Arguments

n

number of colors to produce

Value

n characters used for color palette

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
# NOT RUN {
pal <- JGRAY(100)
data(volcano)
image(volcano, col=pal)

# }

Run the code above in your browser using DataLab