colorClusters: Assign colors to clusters.

Description Usage Arguments Value

View source: R/cluster.R

Description

Takes a clustering set as returned by clusterTimeseries and assigns colors to each cluster in each clustering along the "hue" color wheel, as in scale_colour_hue in ggplot2. If cset contains a sorting, this sorting will be used to assign colors along the color wheel, otherwise a sorting will be calculated first, using sortClusters.

Usage

1
colorClusters(cset, colf, ...)

Arguments

cset

a clustering set as returned by clusterTimeseries

colf

a function that generates n colors

...

arguments to color function colf

Value

Returns the input "clustering" object with a list of vectors ("colors"), each providing a named vector of colors for each cluster.


segmenTier documentation built on May 2, 2019, 2:49 p.m.