R code used at VAPMS Selected Applications of Mathematical Statistics, summer semester 2018/2019.

Class 9

Clustering:
loc <- cmdscale(eurodist)
x <- loc[, 1]
y <- -loc[, 2]
plot(x, y, xlab = "", ylab = "", asp = 1, axes = F)
text(x, y, rownames(loc), cex = 0.6)

d <- hclust (eurodist, "ward.D2")
plot (d)

kmeans (eurodist, 3)


Created: Fri Apr 26 2019
Last modified: Fri Apr 26 17:25:48 CEST 2019