plot_tree: Plot cluster tree

Description Usage Arguments Details Value Examples

View source: R/tree.R

Description

Visualize the output of build_tree as a dendrogram.

Usage

1
plot_tree(tree, direction = "rightwards", cex = 0.7, ...)

Arguments

tree

List containing tree structure. Output from build_tree

direction

c('rightwards','downwards'); the direction of dendrogram

cex

Font size of edge/tip labels

...

Other parameters to plot.phylo

Details

Uses plot.phylo to visualize cluster tree.

Value

NULL

Examples

1
2
3
4
5
6
set.seed(1)
x <- simulate_whx(nrow=50,ncol=100,rank=5)
s <- scNMFSet(x$x)
s <- vb_factorize(s,ranks=seq(2,8),nrun=5)
tree <- build_tree(s,rmax=5)
plot_tree(tree)

hjunwoo/ccfindR documentation built on Oct. 4, 2019, 10:31 a.m.