mdaplot.getColors {mdatools} | R Documentation |
Color values for plot elements
Description
Generate vector with color values for plot objects (lines, points, bars), depending on number of groups for the objects.
Usage
mdaplot.getColors(
ngroups = NULL,
cgroup = NULL,
colmap = "default",
opacity = 1,
maxsplits = 64
)
Arguments
ngroups |
number of colors to create. |
cgroup |
vector of values, used for color grouping of plot points or lines. |
colmap |
which colormap to use ('default', 'gray', 'old', or user defined in form c('col1', 'col2', ...)). |
opacity |
opacity for colors (between 0 and 1) |
maxsplits |
if contenuous values are used for color gruping - how many groups to create? |
Value
Returns vector with generated color values
[Package mdatools version 0.14.1 Index]