Learn R Programming

ggtree (version 1.4.11)

NJ: NJ

Description

neighbor-joining method

Usage

NJ(X)

Arguments

X
distance matrix

Value

phylo object

Examples

Run this code
## Not run: 
# X <- matrix(c(0,5,4,7,6,8,
# 	5,0,7,10,9,11,
# 	4,7,0,7,6,8,
# 	7,10,7,0,5,9,
# 	6,9,6,5,0,8,
# 	8,11,8,9,8,0), ncol=6)
# rownames(X) <- colnames(X) <- LETTERS[1:6]
# tree <- NJ(X)
# print(tree)
# ## End(Not run)

Run the code above in your browser using DataLab