Description Usage Arguments Value Author(s) See Also Examples
The function computes the UPGMA tree from a distance matrix.
1 |
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.
Andres Dajles addajles@alaska.edu and John Rhode jarhodes2@alaska.edu
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.