root.phylo {treeio} | R Documentation |
re-root a tree
## 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, ...)
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 |
rerooted tree
Guangchuang Yu