MapToContinuousColors {wheatmap} | R Documentation |
map data to continuous color
Description
map data to continuous color
Usage
MapToContinuousColors(data, cmp = CMPar(), given.cm = NULL)
Arguments
data |
numeric vector |
cmp |
an color map parameter object of class CMPar |
given.cm |
given colormap |
Value
an object of ColorMap
Examples
barplot(1:10, col=MapToContinuousColors(1:10)$colors)
barplot(1:20, col=MapToContinuousColors(c(1:10,10:1))$colors)
[Package wheatmap version 0.2.0 Index]