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.

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

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

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

Arguments

n

the number of colors to be in the palette.

...

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

Value

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

See also

Author

C. Beleites and A. Bonifacio

Examples

# Matlab dark palette op <- par(mar = c(0, 0, 0, 0)) pie(rep(1, 12), col = matlab.palette(12))
par(op) plot(flu, col = matlab.palette(nrow(flu)))
plotmap(faux_cell[, , 1200], col.regions = matlab.palette())
# Matlab dark palette op <- par(mar = c(0, 0, 0, 0)) pie(rep(1, 12), col = matlab.dark.palette(12))
par(op) plot(flu, col = matlab.dark.palette(nrow(flu)))
plotmap(faux_cell[, , 1200], col.regions = matlab.dark.palette())
# Alois palette op <- par(mar = c(0, 0, 0, 0)) pie(rep(1, 12), col = alois.palette(12))
par(op) plot(flu, col = alois.palette(nrow(flu)))
plotmap(faux_cell[, , 1200], col.regions = alois.palette())