upgma {phybase}R Documentation

UPGMA tree

Description

The function computes the UPGMA tree from multiple gene trees.

Usage

upgma(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)

Liang Liu lliu@oeb.harvard.edu

See Also

maxtree, consense, pair.dist

Examples

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

[Package phybase version 1.1 Index]