Learn R Programming

phytools (version 0.2-50)

orderMappedEdge: Order the columns of mapped.edge to match across trees

Description

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. Also works for a single tree.

Usage

orderMappedEdge(trees, ordering=NULL)

Arguments

trees
object of class "phylo" or "multiPhylo".
ordering
ordering for the columns of $mapped.edge. If NULL, then an alphabetical order is assumed. Options are "alphabetical", "numerical", or any specific ordering of the mapped traits (e.g., c("A","B","C"

Value

  • a modified object of class "phylo" or "multiPhylo".