Chapter 5: Clustering¶
Author: Amy Wagaman
Digital resources supplementing the chapter
Much of the R code shown in the chapter is available for viewing and downloading from this repository, as well as the necessary related data files.
Small clustering example¶
Iris data visualization¶
Wine data, k-means clustering¶
To run that R Markdown file on your own machine, you would need the associated
data file in the same folder as the .Rmd
file.
You can get the data file here.
Wine data, hierarchical clustering¶
To run that R Markdown file on your own machine, you would need the associated
data file in the same folder as the .Rmd
file.
You can get the data file here.
Wine data, model-based clustering¶
To run that R Markdown file on your own machine, you would need the associated
data file in the same folder as the .Rmd
file.
You can get the data file here.
You will also need a file containing BIC values, which you should also place
in the same folder as the .Rmd
file.
You can get that second file here.
Wine data, density-based clustering¶
To run that R Markdown file on your own machine, you would need the associated
data file in the same folder as the .Rmd
file.
You can get the data file here.
Clustering on dolphin network data¶
To run that R Markdown file on your own machine, you would need the associated
data file in the same folder as the .Rmd
file.
You can get the data file here.
k-means clustering with bad initial centroids¶
College Scorecard, two types of clustering compared¶
To run that R Markdown file on your own machine, you would need the associated
data file in the same folder as the .Rmd
file.
You can get the data file here.