Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

multiline.plot.colors

MATLAB multiline plot colors


Description

Creates a vector of colors equivalent to MATLAB's default colors to use for multiline plots.

Usage

multiline.plot.colors()

Details

This is equivalent to the MATLAB command

get(gca, 'ColorOrder')

Value

Returns vector of color names. This can be used either to create a user-defined color palette for subsequent graphics, a col= specification in graphics functions, or in par.

Note

Method should be considered experimental and will most likely be removed and replaced with similar functionality in the near future.

Author(s)

See Also

Examples

require(graphics)
x <- matrix(1:16, nrow=2, byrow=TRUE)
matplot(x, type="l", col=multiline.plot.colors())

matlab

MATLAB emulation package

v1.0.2
Artistic-2.0
Authors
P. Roebuck
Initial release
2014-06-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.