Extra functions to cut, label and colour dendrogram clusters
dendroextras provides the
slice function as an
alternative to the base
cut function. In contrast to
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).
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
labels<- methods to get and set the labels of cluster
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.