upgma {phybase} | R Documentation |
The function computes the UPGMA tree from multiple gene trees.
upgma(dist, name, method="average")
dist |
a distance matrix |
name |
the species names |
method |
the method for recalculate pairwise distances. two options: averge or min. |
The function returns a tree node matrix, a tree string and species names.
Liang Liu lliu@oeb.harvard.edu
dist<-matrix(runif(25),5,5) dist<-(dist+t(dist))/2 diag(dist)<-0 upgma(dist,name=c("H","G","C","O","W"))