tiporder: Orders tip labels by their position on the tree.

Description Usage Arguments Value Author(s) Examples

Description

Provides an ordered vector of tip labels, corresponding to their position on the tree.

Usage

1

Arguments

phy

A tree of class ‘phylo’.

labels

Logical. Should labels be printed? If FALSE, the indices are given. Default of TRUE.

Value

A character or numeric vector giving the names of the tip in the order of their position on the tree. The order is that from top to bottom when the tree is plotted with direction = "rightwards".

Author(s)

Samuel Brown <s_d_j_brown@hotmail.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(anoteropsis)
anoTree <- nj(dist.dna(anoteropsis))
tiporder(anoTree)
tiporder(anoTree, labels = FALSE)


data(woodmouse)
woodTree <- nj(dist.dna(woodmouse))
tiporder(woodTree)
tiporder(ladderize(woodTree))

spider documentation built on May 2, 2019, 5:16 p.m.