MapToContinuousColors: map data to continuous color

View source: R/colormap.R

MapToContinuousColorsR 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)

wheatmap documentation built on March 18, 2022, 6:43 p.m.