Description Usage Arguments Details Value Author(s) See Also Examples
Takes a subtree of a dendrogram object such as generated by hclust according to a prespecified number of clusters or a prespecified height.
1 |
tree |
The tree object which contains the attributes |
k |
The number of clusters at which to cut. |
h |
The height at which to cut. |
Does the same as cutree with two differences: Firstly it gives back an entire tree object, i.e. an object with attributes merge
, height
, labels
and order
, as well as data
, which contains the cluster ids. Secondly the cluster ids are chosen by the heights at which the clusters were built.
An hclust object.
Alexander Pilhoefer
cutree
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.