values2rgb: Maps a matrix of values (=image) onto an RGB (given a...

Usage Arguments Value

View source: R/3Dplotting.R

Usage

1
2
3
4
5
6
7
8
9
values2rgb(
  values,
  pal = palette(),
  valRange = range(values, na.rm = TRUE, finite = TRUE),
  trimRange = TRUE,
  na.color = NA,
  rescaleMid = T,
  ...
)

Arguments

values

Value matrix to map

pal

The palette to be used

valRange

Range of values to be considered for mapping (min, max)

trimRange

Should values be trimmed to that range?

na.color

color for NA values

rescaleMid

Should 0 be preferred to be in middle of colorscale? Default:TRUE

...

parameters to be further passed on

Value

returns array (rgba, col, row)


mreichMPI-BGC/plotmr documentation built on Feb. 8, 2022, 5:41 p.m.