formatTree {TreeAndLeaf} | R Documentation |
This function sets attributes of a tree-and-leaf igraph object for plotting in the RedeR app interface.
formatTree(tal, theme = 1)
tal |
An igraph object generated by the |
theme |
An integer ranging from 1 to 5 with desired theme. |
An igraph object with attributes for RedeR application.
library(RedeR) hc <- hclust(dist(USArrests), "ave") tal <- treeAndLeaf(hc) tal <- formatTree(tal, theme = 5)