Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dendroextras-package

Extra functions to cut, label and colour dendrogram clusters


Description

Extra functions to cut, label and colour dendrogram clusters

Cutting clusters

dendroextras provides the slice function as an alternative to the base cut function. In contrast to cut, slice returns group membership in dendrogram order i.e. the first element in the group vector that is returned will be the leftmost member of the leftmost cluster (cluster #1).

Colouring clusters

dendroextras provides colour_clusters to colour all of the edges forming clusters cut by height or number of groups. You can also set and retrieve the leaf colours (i.e. the terminal nodes) using set_leaf_colours and leaf_colours.

Labels

dendroextras provides labels and labels<- methods to get and set the labels of cluster members.

See Also

dendrogram, hclust in stats package.


dendroextras

Extra Functions to Cut, Label and Colour Dendrogram Clusters

v0.2.3
GPL (>= 2)
Authors
Gregory Jefferis [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.