| formatTree {TreeAndLeaf} | R Documentation |
Applies formatting patterns to an igraph object according to predefined themes. This formatting is used for plotting on the RedeR app interface.
formatTree(gg, theme = 1, cleanalias = FALSE)
gg |
An igraph object generated by either |
theme |
An integer ranging from 1 to 5 with desired theme. |
cleanalias |
A logical that removes the node aliases when set to TRUE (default = FALSE) <logical>. |
An igraph object with standard formatting for RedeR application.
hc <- hclust(dist(USArrests), "ave")
gg <- hclust2igraph(hc)
gg <- formatTree(gg = gg,
theme = 5)