This function midpoint roots a rooted or unrooted tree.
Usage
midpoint.root(tree)
Arguments
tree
an object of class "phylo".
Value
A phylogenetic tree in "phylo" format.
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
Paradis, E., J. Claude, and K. Strimmer (2004) APE: Analyses of phylogenetics and evolution in R language. Bioinformatics, 20, 289--290.