Colour sub-clusters of a tree (dendrogram/hclust) object
The distinctive feature of this function is to colour both the
terminal leaves of a cluster and the edges leading to those leaves.
The edgePar attribute of nodes will be augmented by a new list item col.
The groups will be defined by a call to
slice using the k or h
1 2 3 4
number of groups (passed to
height at which to cut tree (passed to
Function or vector of colours
If TRUE add numeric group label - see Details for options
groupLabels=TRUE then numeric group labels will added to
each cluster. If a vector is supplied then these entries will be used as
the group labels. If a function is supplied then it will be passed a
numeric vector of groups (e.g. 1:5) and must return the formatted group
a tree object of class dendrogram.
1 2 3 4 5 6
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.