MapToDiscreteColors | R Documentation |
map data to discrete color
MapToDiscreteColors(data, cmp = CMPar(), given.cm = NULL)
data |
numeric vector |
cmp |
an color map parameter object of class CMPar |
given.cm |
given color map |
an object of ColorMap
pie(rep(1,6), col=MapToDiscreteColors(c(1:3,10:13))$colors)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.