powered by
map data to continuous color
MapToContinuousColors(data, cmp = CMPar(), given.cm = NULL)
numeric vector
an color map parameter object of class CMPar
given colormap
an object of ColorMap
# NOT RUN { barplot(1:10, col=MapToContinuousColors(1:10)$colors) barplot(1:20, col=MapToContinuousColors(c(1:10,10:1))$colors) # }
Run the code above in your browser using DataLab