Learn R Programming

colorRamps (version 2.3.1)

matlab.like: Generate color palettes similar to the matlab default

Description

Generates matlab-like color palettes

Usage

matlab.like(n)
matlab.like2(n)
blue2green2red(n)

Value

a color palette

Arguments

n

number of colors

Author

Timothy H. Keitt

Details

blue2green2red is simply an alias for matlab.like2.

References

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

Examples

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

Run the code above in your browser using DataLab