treeAndLeaf {TreeAndLeaf}R Documentation

Layout creation and plotting of the TreeAndLeaf in RedeR.

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

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

library(RedeR)
rdp <- RedPort()
hc <- hclust(dist(USArrests), "ave")
gg <- hclust2igraph(hc)

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

## End(Not run)


[Package TreeAndLeaf version 1.2.0 Index]