mdaplot.getColors | R Documentation |
Generate vector with color values for plot objects (lines, points, bars), depending on number of groups for the objects.
mdaplot.getColors(
ngroups = NULL,
cgroup = NULL,
colmap = "default",
opacity = 1,
maxsplits = 64
)
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? |
Returns vector with generated color values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.