Description Usage Arguments Value See Also Examples
Returns a matrix of positions to be relaxed by the force based algorithm implemented in the RedeR package
1 | treeAndLeaf(gg, size = "small")
|
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. |
A matrix of the nodes positions
1 2 | hc <- hclust(dist(USArrests), "ave")
layout <- treeAndLeaf(hc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.