Learn R Programming

phytools (version 0.3-72.1)

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.