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

Description Usage Arguments Value Author(s) Examples

View source: R/tiporder.R

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 <[email protected]>

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 31, 2017, 2:59 a.m.