Load the dataset for today
Cluster analysis of the dune vegetation
We calculate two dissimilarity indices between sites: Bray-Curtis distance and Chord distance
bray_distance <- vegdist(dune)
# Chord distance, euclidean distance normalized to 1.
chord_distance <- dist(decostand(dune, "norm"))
We perform the cluster analysis. Which is the default clustering method?
Let’s use "average"
, who will link clusters
Let’s plot them side to side
Ok, that’s a little bit ugly
par(mfrow = c(1, 2))
plot(b_cluster, hang = -1, main = "", axes = F)
axis(2, at = seq(0, 1, 0.1), labels = seq(0, 1, 0.1), las = 2)
plot(c_cluster, hang = -1, main = "", axes = F)
axis(2, at = seq(0, 1, 0.1), labels = seq(0, 1, 0.1), las = 2)