treeAndLeaf {TreeAndLeaf} | R Documentation |
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.
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.
library(RedeR) rdp <- RedPort() hc <- hclust(dist(USArrests), "ave") gg <- hclust2igraph(hc) ## Not run: calld(rdp) treeAndLeaf(rdp, gg) ## End(Not run)