upgma: UPGMA tree

Description Usage Arguments Value Author(s) See Also Examples

Description

The function computes the UPGMA species tree from multiple gene trees.

Usage

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

Arguments

dist

a distance matrix

name

the species names

method

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

Value

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

Author(s)

Liang Liu lliu@uga.edu

See Also

maxtree, consense, pair.dist

Examples

1
2
3
4
dist<-matrix(runif(25),5,5)
dist<-(dist+t(dist))/2
diag(dist)<-0
upgma(dist,name=c("H","G","C","O","W"))

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