colorize.value: colorize.value

View source: R/muPairs.R

colorize.valueR Documentation

colorize.value

Description

transforms a value to a color based on a colorscale and a value scale

Usage

colorize.value(
  val,
  rng = c(-1, 1),
  colscheme.col.val = c(gplots::colorpanel(100, "blue", "white"), gplots::colorpanel(100,
    "white", "red"))
)

Arguments

val

value to be transformed

rng

value range

colscheme.col.val

Color palette to pick a color from

Value

color of the value

Examples

colorize.value(0.5,rng=c(-1,1), colscheme.col.val=c(colorpanel(100,"blue","white"),colorpanel(100,"white","red")))

demuellae/muRtools documentation built on Nov. 6, 2024, 9:44 a.m.