treeAndLeaf: Layout creation and plotting of the TreeAndLeaf in RedeR.

Description Usage Arguments Value See Also Examples

View source: R/treeAndLeaf.R

Description

Creates tree-and-leaf layouts and plots. It also returns the given igraph with nodes coordinates added after setting of positions and relaxation by the force based algorithm implemented in the RedeR package.

Usage

1
treeAndLeaf(obj, gg)

Arguments

obj

An object of RedPort class, from RedeR package <RedPort>.

gg

An igraph object generated by either hclust2igraph or phylo2igraph<igraph>.

Value

Plotting of igraph in RedeR app and the given igraph with nodes coordinates added.

See Also

formatTree

addGraph

relax

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(RedeR)
rdp <- RedPort()
hc <- hclust(dist(USArrests), "ave")
gg <- hclust2igraph(hc)

## Not run: 
calld(rdp)
treeAndLeaf(rdp, gg)

## End(Not run)

TreeAndLeaf documentation built on Nov. 8, 2020, 4:51 p.m.