Description Usage Arguments Value See Also Examples
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.
1 | treeAndLeaf(obj, gg)
|
obj |
An object of RedPort class, from RedeR package <RedPort>. |
gg |
An igraph object generated by either |
Plotting of igraph in RedeR app and the given igraph with nodes coordinates added.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.