mdaplot.getColors: Color values for plot elements

Description Usage Arguments Value

View source: R/mdaplot.R

Description

Generate vector with color values for plot objects (lines, points, bars), depending on number of groups for the objects.

Usage

1
2
3
4
5
6
7
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


mdatools documentation built on Sept. 13, 2021, 9:07 a.m.