RenumberTips(tree, tipOrder)
sorts the tips of a phylogenetic tree tree
such that the indices in tree[["edge"]][, 2]
correspond to the order of
leaves given in tipOrder
.
RenumberTips(tree, tipOrder)
# S3 method for phylo
RenumberTips(tree, tipOrder)
# S3 method for multiPhylo
RenumberTips(tree, tipOrder)
# S3 method for list
RenumberTips(tree, tipOrder)
# S3 method for `NULL`
RenumberTips(tree, tipOrder)
A tree of class phylo
.
A character vector containing the values of
tree[["tip.label"]]
in the desired sort order, or an object
(perhaps of class phylo
or Splits
) with tip labels.
RenumberTips()
returns tree
, with the tips' internal
representation numbered to match tipOrder
.
Other tree manipulation:
AddTip()
,
CollapseNode()
,
ConsensusWithout()
,
DropTip()
,
EnforceOutgroup()
,
ImposeConstraint()
,
KeptPaths()
,
KeptVerts()
,
LeafLabelInterchange()
,
MakeTreeBinary()
,
RenumberTree()
,
Renumber()
,
RootTree()
,
SortTree()
,
Subtree()
,
TipTimedTree()
,
TrivialTree
data("Lobo") # Loads the phyDat object Lobo.phy
tree <- RandomTree(Lobo.phy)
tree <- RenumberTips(tree, names(Lobo.phy))