View source: R/Functions_plotting_genericData.R
assignColor | R Documentation |
Assign a color from a range of colors to all values in a numeric vector (datarange)
assignColor( datarange, colscale, center = NULL, manualRange = NULL, NAcolor = "#FFFFFF" )
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 |
a character vector of same length as datarange
with color values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.