splitColorVar: 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)
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)