col.scale: col.scale

col.scaleR Documentation

col.scale

Description

Assign rgb colors to numeric data

Assigns rgb colors to numeric data values in vector "x".. maps scalar values in val.range (default c(0,1)) to a linear color scale of between col.min (default white) and col.max (default black), each which are length 3 vectors or characters. RGB values are scaled between 0 and 1. Values below and above val.min and val.max are mapped to col.max and col.max respectively

Usage

col.scale(
  x,
  val.range = c(0, 1),
  col.min = "white",
  col.max = "black",
  na.col = "white",
  invert = F
)

Author(s)

Marcin Imielinski


mskilab/gTrack documentation built on March 28, 2024, 6:18 p.m.