Learn R Programming

matlab (version 1.0.4.1)

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()

Arguments

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.

Author

P. Roebuck proebuck1701@gmail.com

Details

This is equivalent to the MATLAB command

get(gca, 'ColorOrder')

See Also

Examples

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

Run the code above in your browser using DataLab