MapToContinuousColors | R Documentation |
map data to continuous color
MapToContinuousColors(data, cmp = CMPar(), given.cm = NULL)
data |
numeric vector |
cmp |
an color map parameter object of class CMPar |
given.cm |
given colormap |
an object of ColorMap
barplot(1:10, col=MapToContinuousColors(1:10)$colors) barplot(1:20, col=MapToContinuousColors(c(1:10,10:1))$colors)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.