formatTree: A theme function for tree-and-leaf igraph objects.

Description Usage Arguments Value See Also Examples

View source: R/formatTree.R

Description

This function sets attributes of a tree-and-leaf igraph object for plotting in the RedeR app interface.

Usage

1
formatTree(tal, theme = 1)

Arguments

tal

An igraph object generated by the TreeAndLeaf function.

theme

An integer ranging from 1 to 5 with desired theme.
Options:
1- A clean black and blue theme, for additional customizations.
2- Green palette theme.
3- Blue palette theme.
4- Purple palette theme.
5- Red palette theme.
For detailed customization, see attributes in the addGraph method.

Value

An igraph object with attributes for RedeR application.

See Also

addGraph

treeAndLeaf

Examples

1
2
3
4
library(RedeR)
hc <- hclust(dist(USArrests), "ave")
tal <- treeAndLeaf(hc)
tal <- formatTree(tal, theme = 5)

sysbiolab/TreeAndLeaf documentation built on Oct. 23, 2021, 12:12 a.m.