treeAndLeaf: Initial layout creation for the TreeAndLeaf

Description Usage Arguments Value See Also Examples

View source: R/treeAndLeaf.R

Description

Returns a matrix of positions to be relaxed by the force based algorithm implemented in the RedeR package

Usage

1
treeAndLeaf(gg, size = "small")

Arguments

gg

an hclust or igraph object, containing the dendrogram to be reorganized

size

a string that describes the size of the dendrogram. "small" = less than 100 nodes; "medium" = less than 500 nodes; "large" = 500+ nodes. This is just a reference point, use the size that gives the best results.

Value

A matrix of the nodes positions

See Also

addGraph

Examples

1
2
hc <- hclust(dist(USArrests), "ave")
layout <- treeAndLeaf(hc)

leonardokume/TreeAnfLeaf documentation built on May 6, 2019, 9:09 a.m.