Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

wheatmap (version 0.2.0)

MapToContinuousColors: 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

Run this code
# 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