treeAndLeaf {TreeAndLeaf} | R Documentation |
This function tranforms hclust and phylo objects into tree-and-leaf igraph objects.
treeAndLeaf(obj)
obj |
An object of class 'hclust' or 'phylo'. |
A tree-and-leaf igraph object.
library(RedeR) rdp <- RedPort() hc <- hclust(dist(USArrests), "ave") tal <- treeAndLeaf(hc) ## Not run: calld(rdp) addGraph(obj=rdp, tal) ## End(Not run)