D | R Documentation |
This data set is a 4 by 4 distance matrix. It can be used to illustrate the three most common distance measures between groups: single, complete, and average linkage.
D
A data frame with 4 rows and 4 columns.
# Hierarchical Clustering
clust <- hclust(as.dist(D), method = "single")
plot(clust, hang = -1, main = "Single linkage",
xlab = "", sub = "")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.