upgmaR: UPGMA tree

Description Usage Arguments Value Author(s) See Also Examples

Description

The function computes the UPGMA tree from a distance matrix.

Usage

1
upgmaR(dist, name, method="average")

Arguments

dist

a distance matrix

name

the species names

method

the method for recalculate pairwise distances. two options: averge or min.

Value

The function returns a tree node matrix, a tree string and species names.

Author(s)

Andres Dajles addajles@alaska.edu and John Rhode jarhodes2@alaska.edu

See Also

maxtree, consense, pair.dist

Examples

1
2
3
4
5
a=c(0, 2, 7, 5, 3,10, 3, 6, 2, 0, 8, 6, 4, 2,5, 9, 7, 8, 0, 11, 9, 15, 13, 3, 5, 6, 11, 0, 20, 18, 15, 10, 3, 4, 9, 20, 0, 12, 9, 7, 10, 2, 15, 18, 12, 0, 3, 16, 3, 5, 13, 15, 9, 3, 0, 19, 6, 9 ,3, 10, 7, 16, 19, 0)
dist= matrix(a, nrow= 8, ncol= 8)
dist
name= c("A", "B", "C", "D", "E", "F", "G", "H")
upgmaR(dist, name, method="average")

bomeara/phybase documentation built on May 12, 2019, 11:35 p.m.