cutree_order | R Documentation |
Cut a tree (result from hclust) into groups of data. Groups are in the order of the tree leafs
cutree_order(tree, k = k, h = h)
tree |
an hclust object |
k |
the desired number of groups |
h |
height where the tree is to be cut |
Taken from http://larmarange.github.io/JLutils/reference/cutree.order.html
hc <- hclust(dist(USArrests))
memb <- cutree_order(hc, k = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.