Here is the algorithm for Hierarchical clustering:
Each point is its own cluster
For i = n, n-1, n-2, ..., 2:
Compare all clusters to one another (dissimilarity metric)
Fuse the two most similar ones, Dissimilarity tells you height in dendogram
the data — 9 points, distances chosen to be easy
the dendrogram, growing bottom-up
every bracket's height = the dissimilarity at which that fusion happened;
after the last fusion a draggable purple cut line appears
number of clusters K:
342 Palmer penguins: bill length and depth, z-scored, Euclidean distance.
Same data, four linkages, each tree cut into K clusters; a cluster takes a species' color when it is mostly that species.