assignColor: assignColor

View source: R/Functions_plotting_genericData.R

assignColorR Documentation

assignColor

Description

Assign a color from a range of colors to all values in a numeric vector (datarange)

Usage

assignColor(
  datarange,
  colscale,
  center = NULL,
  manualRange = NULL,
  NAcolor = "#FFFFFF"
)

Arguments

datarange

the data range for the legend

colscale

character vector of colors

center

force the middle of the color vector to correspond to this value

manualRange

enter a range to fit the color range to, if not range(datarange)

NAcolor

color to assign to NA values

Value

a character vector of same length as datarange with color values


mjhelf/Mosaic documentation built on April 28, 2022, 11:32 a.m.