colorClusterLabels: Gets the color cluster labels

View source: R/plots.R

colorClusterLabelsR Documentation

Gets the color cluster labels

Description

Gets the color cluster labels using dendrapply().

Usage

colorClusterLabels(hcd, colors)

colorNode(n, cols = NULL)

Arguments

hcd

an object of the class dendrogram.

colors

a character vector containing colors.

Value

Returns the modified dendrogram.

Functions

  • colorNode(): The functions used in dendrapply().

Author(s)

Rehrauer, Hubert

Schmid, Peter

See Also

dendrapply

Examples

hc = hclust(dist(USArrests), "ave")
dend = as.dendrogram(hc)
ccl = colorClusterLabels(dend, rainbow(6))

uzh/ezRun documentation built on March 5, 2025, 3:41 p.m.