colorClusters {segmenTier} | R Documentation |
Assign colors to clusters.
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
colorClusters(cset, colf, ...)
Arguments
cset |
a clustering set as returned by |
colf |
a function that generates |
... |
arguments to color function |
Value
Returns the input "clustering" object with a list of vectors ("colors"), each providing a named vector of colors for each cluster.
[Package segmenTier version 0.1.2 Index]