treeAndLeaf {TreeAndLeaf} | R Documentation

## Layout a TreeAndLeaf diagram.

### Description

This function tranforms hclust and phylo objects into tree-and-leaf igraph objects.

### Usage

    treeAndLeaf(obj)

### Arguments

`obj` | An object of class 'hclust' or 'phylo'.

### Value

A tree-and-leaf igraph object.

### See Also

`formatTree`

`hclust`

`as.phylo`

`addGraph`

`relax`

### Examples

    library(RedeR)
    rdp <- RedPort()
    hc <- hclust(dist(USArrests), "ave")
    tal <- treeAndLeaf(hc)

    ## Not run:
    calld(rdp)
    addGraph(obj=rdp, tal)

    ## End(Not run)

[Package TreeAndLeaf version 1.6.1 Index]