getBinarySubTree | R Documentation |
Reads a hierarchical clustering and returns the left or right child of the root node.
getBinarySubTree(tree, right = FALSE)
tree |
An hclust object |
right |
If TRUE, return the right subtree, i.e. the right child of the root node. |
The subtree as an hclust object.
Johannes Freudenberg, Xiangdong Liu, Mario Medvedovic
hclust
hc <- hclust(dist(matrix(1:20,5)))
hc$labels <- 1:5
plot(hc)
hc.sub <- getBinarySubTree(hc, TRUE)
plot(hc.sub)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.