Learn R Programming

hyperSpec (version 0.100.2)

matlab.palette: Matlab-like Palettes 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.

Description

Matlab-like Palettes 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, ...)

alois.palette(n = 100, ...)

Value

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

Arguments

n

the number of colors to be in the palette.

...

further arguments are handed to rainbow (alois.palette: colorRampPalette)

Author

C. Beleites and A. Bonifacio

See Also

Examples

Run this code

plotmap (chondro [,, 778], col.regions = matlab.palette ())


plot (flu, col = matlab.dark.palette (nrow (flu)))

plotmap (chondro, col = alois.palette)

Run the code above in your browser using DataLab