Skip to content

Instantly share code, notes, and snippets.

@zackbatist
Last active January 20, 2018 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zackbatist/9492588 to your computer and use it in GitHub Desktop.
Save zackbatist/9492588 to your computer and use it in GitHub Desktop.
Nice plot template format for k-means clustering
plot(a,pch=20, col = a.km$cluster)
symbols(x=a.km$centers,circles=a.km$size, add=TRUE)
text(x=a$x,y=a$y,labels=row.names(a[1:34,]),col="red",cex=0.5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment