Learn R Programming

phytools (version 0.4-45)

minRotate: Rotates all nodes of the tree to minimize the difference in order with a vector

Description

This function rotates all the nodes of the tree to try and minimize the different between the order of the tips and the rank-order of a numeric vector x.

Usage

minRotate(tree, x)

Arguments

tree
tree.
x
numeric vector.

Value

  • A object of class "phylo".

Details

Primarily designed to be used internally by phylo.to.map.

References

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