Learn R Programming

TreeTools (version 0.1.2)

NJTree: Neighbour Joining Tree

Description

Generates a rooted neighbour joining tree, with no edge lengths.

Usage

NJTree(dataset)

Arguments

dataset

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

Value

NJTree returns an object of class phylo.

See Also

Other tree generation functions: BalancedTree, PectinateTree, RandomTree, SingleTaxonTree, TreeNumber

Examples

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

# }

Run the code above in your browser using DataLab