root-method: root

Description Usage Arguments Value Author(s)

Description

re-root a tree

Usage

1
2
3
4
5
## S3 method for class 'phylo'
root(phy, outgroup, node = NULL, resolve.root = TRUE, ...)

## S3 method for class 'treedata'
root(phy, outgroup, node = NULL, resolve.root = TRUE, ...)

Arguments

phy

tree object

outgroup

a vector of mode numeric or character specifying the new outgroup

node

node to reroot

resolve.root

a logical specifying whether to resolve the new root as a bifurcating node

...

additional parameters passed to ape::root.phylo

Value

rerooted tree

Author(s)

Guangchuang Yu


treeio documentation built on Nov. 21, 2020, 2:01 a.m.