color_unique_labels: Color unique labels in a dendrogram

Description Usage Arguments Value Examples

Description

Color unique labels in a dendrogram

Usage

1

Arguments

dend

a dend object

...

NOT USED

Value

A dendrogram after the colors of its labels have been updated (a different color for each unique label).

Examples

1
2
3
4
5
6
7
8
x <- c(2011,2011,2012,2012,2015,2015,2015)
names(x) <- x
dend <- as.dendrogram(hclust(dist(x)))

par(mfrow = c(1,2))
plot(dend)
dend2 <- color_unique_labels(dend)
plot(dend2)


Search within the dendextend package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.