Description Usage Arguments Value
Function to plot the cluster assignment from the k-means algorithm.
1 | plot_kmeans(sim_kmeans, sampleMat)
|
sim_kmeans |
Output from the k-means function |
sampleMat |
An (n x d+1) matrix with the observed data and true cluster assignments |
A plot containing the observed data, colored by their clusters according to k-means. Estimated mean of clusters also plotted.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.