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).
hc <- hclust(dist(USArrests[1:4, ]), "ave")
dend <- as.dendrogram(hc)
get_branches_heights(dend)
#> [1] 37.17701 54.80041 77.65915