splitColorVar {oaPlots} | R Documentation |
Function to take a numeric vector 'colorVar' and palette 'colorPalette', and return a list containing a vector of color assignments for each element of 'colorVar' (to be used in plot calls), and a vector of breaks defining the color regions (to be used in densityLegend)
Description
Function to take a numeric vector 'colorVar' and palette 'colorPalette', and return a list containing a vector of color assignments for each element of 'colorVar' (to be used in plot calls), and a vector of breaks defining the color regions (to be used in densityLegend)
Usage
splitColorVar(colorVar, colorPalette, breaks = NULL)
Arguments
colorVar |
the numeric vector of values used to color the points |
colorPalette |
a color palette. If 'colorPalette' contains, for example, 6 colors, then the values of colorVar will be split and assigned to these 6 colors |
breaks |
(optional) a numeric vector of two or more unique cut points |
Value
a list containing a vector of color assignments ('colorVec') for each element of 'colorVar' (to be used in plot calls), and a vector of breaks ('breaks') defining the color regions (to be used in densityLegend)
Author(s)
Jason Waddell
[Package oaPlots version 0.0.25 Index]