cutree.order {A2R} | R Documentation |
Cut a tree into groups of data in the order of the tree
Description
Cut a tree (result
from hclust
) into groups
of data. Groups are in the order of the tree
leafs
Arguments
hclu |
An hclust object |
k |
A scalar with the desired number of groups |
h |
A scalar with height where the tree is to be cut |
See Also
cutree
, A2Rplot.hclust
Examples
d77 <- dist(state.x77)
h77 <- hclust(d77)
(ct.o <- cutree.order(h77, k=4))
(ct.n <- cutree(h77,k=4))
cbind(ct.o, ct.n)
[Package
A2R version 0.0-1
Index]