matlab.like {colorRamps}R Documentation

Generate color palettes similar to the matlab default

Description

Generates matlab-like color palettes

Usage

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

Arguments

n

number of colors

Details

blue2green2red is simply an alias for matlab.like2.

Value

a color palette

Author(s)

Timothy H. Keitt

References

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

Examples

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

[Package colorRamps version 2.3.4 Index]