Learn R Programming

phangorn (version 1.5-0)

NJ: Neighbor-Joining

Description

This function performs the neighbor-joining tree estimation of Saitou and Nei (1987). UNJ is the unweighted version from Gascuel (1997).

Usage

NJ(x)
UNJ(x)

Arguments

x
A distance matrix.

Value

  • an object of class "phylo".

References

Saitou, N. and Nei, M. (1987) The neighbor-joining method: a new method for reconstructing phylogenetic trees. Molecular Biology and Evolution, 4, 406--425. Studier, J. A and Keppler, K. J. (1988) A Note on the Neighbor-Joining Algorithm of Saitou and Nei. Molecular Biology and Evolution, 6, 729--731. Gascuel, O. (1997) Concerning the NJ algorithm and its unweighted version, UNJ. in Birkin et. al. Mathematical Hierarchies and Biology, 149--170.,

See Also

nj, dist.dna, dist.hamming, upgma, fastme

Examples

Run this code
data(Laurasiatherian)
dm <- dist.logDet(Laurasiatherian)
tree <- NJ(dm)
plot(tree)

Run the code above in your browser using DataLab