View source: R/multiline.plot.colors.R
multiline.plot.colors | R Documentation |
Creates a vector of colors equivalent to MATLAB's default colors to use for multiline plots.
multiline.plot.colors()
This is equivalent to the MATLAB command
get(gca, 'ColorOrder')
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
.
Method should be considered experimental and will most likely be removed and replaced with similar functionality in the near future.
P. Roebuck proebuck1701@gmail.com
palette
,
par
,
rgb
require(graphics)
x <- matrix(1:16, nrow=2, byrow=TRUE)
matplot(x, type="l", col=multiline.plot.colors())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.