This function midpoint roots a rooted or unrooted tree (Farris 1972).
midpoint.root(tree)
an object of class "phylo"
.
An object of class "phylo"
containing a rooted phylogenetic tree.
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.
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.