zfaithful <- scale(faithful)
d <- dist(zfaithful)
# hclust
cl1 <- hclust(d)
plot(cl1)
# agnes
library("cluster")
cl2 <- agnes(d)
plot(as.dendrogram(cl2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.