plot_tree {ccfindR} | R Documentation

## Plot cluster tree

### Description

Visualize the output of `build_tree` as a dendrogram.

### Usage

    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

    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)

[Package ccfindR version 1.12.0 Index]