Order the columns of mapped.edge to match across trees
This function takes a modified object of class "multiPhylo"
with a mapped discrete character (e.g., see read.simmap
and sorts the columns of each tree$mapped.edge
to have the same state ordering. This is handy if we want to, for instance, run brownie.lite
on a set of mapped trees, and then average the fitted parameter values across trees. The function also works for a single tree.
orderMappedEdge(trees, ordering=NULL)
trees |
object of class |
ordering |
ordering for the columns of |
A modified object of class "phylo"
or "multiPhylo"
.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.