Learn R Programming

phytools (version 1.2-0)

midpoint.root: Midpoint root a phylogeny

Description

This function midpoint roots a rooted or unrooted tree (Farris 1972).

Usage

midpoint.root(tree)

Value

An object of class "phylo" containing a rooted phylogenetic tree.

Arguments

tree

an object of class "phylo".

Author

Liam Revell liam.revell@umb.edu

Details

Midpoint rooting involves locating the midpoint of the longest path between any two tips and putting the root in that location.

This function performs the same operation as midpoint in the phangorn package, but uses no phangorn code internally.

References

Farris, J. (1972) Estimating phylogenetic trees from distance matrices. American Naturalist, 106, 645-667.

Paradis, E., J. Claude, and K. Strimmer (2004) APE: Analyses of phylogenetics and evolution in R language. Bioinformatics, 20, 289-290.

Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.

See Also

midpoint, reroot, root