[Solved] Plot 6-D into 2-D in r [closed]

The simplest thing would be to use PCA to reduce the dimensionality of your data to 2 or 3 dimensions. k-means clustering ought to assign a group to each row of your data so you can easily plot the different groups on the reduced dataset. Here’s a simple way to do PCA though you could … Read more

[Solved] How to cluster with K-means, when number of clusters and their sizes are known [closed]

It won’t be k-means anymore. K-means is variance minimization, and it seems your objective is to produce paritions of a predefined size, not of minimum variance. However, here is a tutorial that shows how to modify k-means to produce clusters of the same size. You can easily extend this to produce clusters of the desired … Read more