TreeTools (version 1.4.1)

NJTree: Generate a neighbour joining tree

Description

NJTree() generates a rooted neighbour joining tree from a phylogenetic dataset.

Usage

NJTree(dataset, edgeLengths = FALSE)

Arguments

dataset

A phylogenetic data matrix of class phyDat, whose names correspond to the labels of any accompanying tree.

edgeLengths

Logical specifying whether to include edge lengths.

Value

NJTree returns an object of class phylo.

See Also

Other tree generation functions: GenerateTree, SingleTaxonTree(), TreeNumber

Examples

Run this code
# NOT RUN {
data('Lobo')
NJTree(Lobo.phy)

# }

Run the code above in your browser using DataLab