matlab.like.colorRamps | R Documentation |
Generates Matlab-like color palettes. Functions imported from the colorRamps package.
matlab.like.colorRamps(n, two = FALSE)
n |
number of colors in the palette. |
two |
flag indicating whether to use |
A vector of n
colors.
image(matrix(1:100, 10), col = matlab.like.colorRamps(100))
image(matrix(1:100, 10), col = matlab.like.colorRamps(100, two = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.