| taxo_cluster | R Documentation |
Computes pairwise taxonomic distances and performs hierarchical clustering.
taxo_cluster(taxa, method = "average", ...)
taxa |
A character vector of taxon names, or a |
method |
Clustering method passed to |
... |
Additional arguments passed to |
An object of class "taxodist_cluster" — a list with:
hclustThe stats::hclust() result.
distThe underlying distance matrix.
taxo_ordinate(), distance_matrix()
taxa <- c("Tyrannosaurus", "Velociraptor", "Triceratops", "Brachiosaurus")
cl <- taxo_cluster(taxa)
if (!is.null(cl$hclust)) {
plot(cl)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.