orderMappedEdge | R Documentation |
Orders the levels of a mapped character to match across trees in a "multiSimmap"
object.
orderMappedEdge(trees, ordering=NULL)
trees |
object of class |
ordering |
ordering for the columns of |
This function takes a an object of class "multiSimmap"
with a mapped discrete character (e.g., see make.simmap
and sorts the columns of each tree$mapped.edge
element 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.
An object of class "simmap"
or (normally) "multiSimmap"
.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.