mdaplot.getColors: Color values for plot elements

View source: R/mdaplot.R

mdaplot.getColorsR 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


mdatools documentation built on Sept. 11, 2024, 7:59 p.m.