formatTree {TreeAndLeaf} | R Documentation

## A theme function for tree-and-leaf igraph objects.

### Description

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

### Usage

    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

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

[Package TreeAndLeaf version 1.4.2 Index]