midpoint.root {phytools}R Documentation

Midpoint root a phylogeny

Description

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

Usage

midpoint.root(tree)

Arguments

tree

an object of class "phylo".

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.

Value

A phylogenetic tree in "phylo" format.

Author(s)

Liam Revell liam.revell@umb.edu

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

reroot, root


[Package phytools version 0.4-60 Index]