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)

zwdzwd/wheatmap documentation built on March 17, 2022, 10:49 p.m.