View source: R/hclist_as_dend.R
hclist_as_dend | R Documentation |
This function transforms a dendrogram into a hc_list object
hclist_as_dend(hc_list)
hc_list |
An object of class |
An object of class dendrogram
that stores a tree structure.
dend |
An object of class |
hc <- hclust(dist(USArrests), "ave")
dend = as.dendrogram(hc)
hclist = dend_as_hclist(dend)
dend2 = hclist_as_dend(hc_list = hclist)
plot(dend2, center = TRUE)
# can compare with plot(dend)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.