Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

midpoint.root

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

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

Author(s)

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


phytools

Phylogenetic Tools for Comparative Biology (and Other Things)

v0.7-70
GPL (>= 2)
Authors
Liam J. Revell
Initial release
2020-9-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.