D: D: Distance Matrix

DR Documentation

D: Distance Matrix

Description

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.

Usage

D

Format

A data frame with 4 rows and 4 columns.

Examples


# Hierarchical Clustering
clust <- hclust(as.dist(D), method = "single")
plot(clust, hang = -1, main = "Single linkage",
     xlab = "", sub = "")


thoree/stat340 documentation built on June 30, 2024, 4:04 p.m.