getBinarySubTree: Get the left or right subtree of a given hierarchical...

Description Usage Arguments Value Author(s) See Also Examples

Description

Reads a hierarchical clustering and returns the left or right child of the root node.

Usage

1
getBinarySubTree(tree, right = FALSE)

Arguments

tree

An hclust object

right

If TRUE, return the right subtree, i.e. the right child of the root node.

Value

The subtree as an hclust object.

Author(s)

Johannes Freudenberg, Xiangdong Liu, Mario Medvedovic

See Also

hclust

Examples

1
2
3
4
5
hc <- hclust(dist(matrix(1:20,5)))
hc$labels <- 1:5
plot(hc)
hc.sub <- getBinarySubTree(hc, TRUE)
plot(hc.sub)

uc-bd2k/gimmR documentation built on May 3, 2019, 2:15 p.m.