matlab.palette {hyperSpec}R Documentation

Matlab-like Palettes

Description

Two palettes going from blue over green to red, approximately as the standard palette of Matlab does. The second one has darker green values and is better suited for plotting lines on white background.

Usage

matlab.palette(n = 100)
matlab.dark.palette(n = 100)

Arguments

n the number of colors to be in the palette.

Value

A vector containing the color values in the form "#rrbbggaa".

Author(s)

C. Beleites

Examples

plotmap (chondro, trellis.args = list (col.regions = matlab.palette ()))
plot (flu, col = matlab.dark.palette (nrow (flu)))

[Package hyperSpec version 0.95 Index]