powered by
Get height attributes of a dendrogram's branches
get_branches_heights( dend, sort = TRUE, decreasing = FALSE, include_leaves = FALSE, ... )
a vector of the dendrogram's nodes heights (excluding leaves).
a dendrogram.
logical. Should the heights be sorted?
logical. Should the sort be increasing or decreasing? Not available for partial sorting.
logical (FALSE). Should the output include the leaves value (0's).
not used.
hc <- hclust(dist(USArrests[1:4, ]), "ave") dend <- as.dendrogram(hc) get_branches_heights(dend)
Run the code above in your browser using DataLab