Skip to contents

UPGMA clustering. Just a wrapper function around hclust.

Usage

upgma(d)

Arguments

d

A distance matrix.

Value

A phylogenetic tree of class phylo.

See also

Author

Klaus Schliep klaus.schliep@gmail.com

Examples


library(ape)
#> 
#> Attaching package: ‘ape’
#> The following objects are masked from ‘package:igraph’:
#> 
#>     degree, edges, mst, ring
data(woodmouse)
dm <- dist.dna(woodmouse)
tree <- upgma(dm)
plot(tree)