Created
May 5, 2014 00:56
-
-
Save jamie23/c1b15a8ecc695c58f1fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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