reorderTips: Function to reorder the tip labels of a tree to match the...

View source: R/reorderTips.r

reorderTipsR Documentation

Function to reorder the tip labels of a tree to match the order in which they are plotted, which can change when a tree is rerooted.

Description

Function to reorder the tip labels of a tree to match the order in which they are plotted, which can change when a tree is rerooted.

Usage

reorderTips(phylo)

Arguments

phylo

An object of class "phylo".

Details

First the internal labels in the edges of the tree are relabelled to appear in ascending order, then the tip labels are reordered to match the correct internal labels.

Value

An object of class "phylo"

Author(s)

Chris Field <fieldc@ethz.ch>

Examples

None

cmfield/apextra documentation built on July 11, 2022, 3:42 a.m.