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
.
colorClusters(cset, colf, ...)
a clustering set as returned by clusterTimeseries
a function that generates n
colors
arguments to color function colf
Returns the input "clustering" object with a list of vectors ("colors"), each providing a named vector of colors for each cluster.