map2colormap: Maps a vector x to a colormap and returns the RGB values

Description Usage Arguments Value

View source: R/library.R

Description

Maps a vector x to a colormap and returns the RGB values

Usage

1
2
map2colormap(x, xmax = NA, symmetric = NA, cmap = colorRamp(c("blue",
  "white", "red")), na_col = "cornsilk3")

Arguments

x

values to be mapped

xmax

maximum value to be mapped

symmetric

if T the map will be symmetric from -xmax to xmax centered arround 0

cmap

a colormap, e.g. from colorRamp

na_col

what color should NA have (name or RGB)

Value

returns the values mapped


BodenmillerGroup/bbRtools documentation built on May 20, 2020, 1:36 a.m.