map2color: Obtains inter quantile average for a defined 'x' vector and...

Description Usage Arguments Value Examples

View source: R/internal_functions.r

Description

Obtains inter quantile average for a defined 'x' vector and both lower and upper quantiles

Usage

1
map2color(x, pal, 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
4
x <- rnorm(100)
pal <- colorRampPalette(c("lightblue","white","salmon"))(256)
limits<-c(-1,1)
map2color(x,pal,limits)

gonzolgarcia/svpluscnv documentation built on March 4, 2020, 10:06 a.m.