Learn R Programming

colorRamps (version 2.3.4)

ygobb: Returns a gradient color map

Description

ygobb makes a color map that runs from yellow -> green -> olive -> blue -> black.

Usage

ygobb(n)

Value

A colormap

Arguments

n

number of colors

Author

Tim Keitt <tkeitt@gmail.com>

Details

I am still working on this one.

References

Keitt, T. H. (2008) Coherent ecological dynamics induced by large scale disturbance. Nature 454:331-334

See Also

Examples

Run this code
image(matrix(1:400, 20), col = ygobb(400))

Run the code above in your browser using DataLab