map2color: Color map from numeric vector

Description Usage Arguments Value Examples

View source: R/internal_functions.r

Description

Produces a vector of colors based on a given palette. The colors are defined by the inpuit vector

Usage

1
map2color(x, pal = NULL, limits = NULL)

Arguments

x

numeric vector

pal

color palette

limits

numeric limit fr color mapping

Value

a color vector graded according to x

Examples

1
2
3
x <- rnorm(100)
x_color <- map2color(x)
head(x_color)

ccbiolab/svpluscnv documentation built on Sept. 9, 2020, 4:52 a.m.