Skip to content

Instantly share code, notes, and snippets.

@jamie23
Created May 5, 2014 00:56
Show Gist options
  • Save jamie23/c1b15a8ecc695c58f1fd to your computer and use it in GitHub Desktop.
Save jamie23/c1b15a8ecc695c58f1fd to your computer and use it in GitHub Desktop.
d = dist(cl, method = "euclidean")
fit = hclust(d, method = "ward")
plot(fit, labels=rownames(d), xaxt = "n")
groups = cutree(fit, k=3)
x = rect.hclust(fit, k=3, border="red", cluster = groups)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment