Learn R Programming

RSEIS (version 2.1-6)

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

Run the code above in your browser using DataLab