colorClusterLabels | R Documentation |
Gets the color cluster labels using dendrapply()
.
colorClusterLabels(hcd, colors)
colorNode(n, cols = NULL)
hcd |
an object of the class dendrogram. |
colors |
a character vector containing colors. |
Returns the modified dendrogram.
colorNode
: The functions used in dendrapply()
.
Rehrauer, Hubert
Schmid, Peter
dendrapply
hc = hclust(dist(USArrests), "ave")
dend = as.dendrogram(hc)
ccl = colorClusterLabels(dend, rainbow(6))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.