matlab.like.colorRamps {sdetorus} | 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))