as.binary {ggtree} | R Documentation

## as.binary

### Description

as.binary method for `phylo` object

### Usage

    as.binary(tree, ...)

    ## S3 method for class 'phylo'
    as.binary(tree, ...)

### Arguments

`tree` | phylo, object
`...` | additional parameter

### Value

binary tree

### Author(s)

Guangchuang Yu http://ygc.name

### Examples

    require(ape)
    tr <- read.tree(text="((A, B, C), D);")
    is.binary.tree(tr)
    tr2 <- as.binary(tr)
    is.binary.tree(tr2)

[Package ggtree version 1.10.5 Index]