choosePalette: Choose palette for a plot.

Description Usage Arguments Value

Description

It is an internal function usually applied for choosing the palette for clusters. Depending if the number of clusters is more than 12 or not, one of two built-in palettes will be applied. If you give your vector of colors, the function will not change them. If the number of clusters is more than 26, it will copy colors to get the needed length of the palette.

Usage

1
choosePalette(colorPalette, clustersNumber)

Arguments

colorPalette

Either "default" or a vector of colors, for example c("yellow", "#CC79A7").

clustersNumber

number of clusters in the output palette.

Value

Color palette with the number of colors equal to the clusterNumber parameter.


PolinaPavlovich/CONCLUS documentation built on May 10, 2019, 2:42 p.m.