NJ: Neighbor-joining

Description Usage Arguments Value Examples

Description

The famous neighbor-joining tree estimation function from Saitou and Nei (1987).

Usage

1
NJ(X)

Arguments

X

a distance matrix

Value

returns an NJ-tree object of class "phylo"

Examples

1
2
3
4
5
6
7
library('ape')
data(tetraExp)
dismat <- expdist(tetraExp, taxa = "all",
                 subtaxa = "Brain",
                 method = "pea")
tr <- root(NJ(dismat), "Chicken_Brain")
plot(tr)

jingwyang/TreeExp documentation built on June 11, 2019, 6:17 p.m.