title: Implementing the Elbow Method for finding the optimum number of clusters for K-Means Clustering in R
body: <p>I want to use K-Means Clustering for my dataset. I am using the kmeans() function in R for doing this.</p>
  <pre><code> k&lt;-kmeans(data,centers=3)
   plotcluster(m,k$cluster)
  </code></pre>
  <p>However i am not sure what is the correct value of K for this function. I want to try using the  <a href="http://en.wikipedia.org/wiki/Determining_the_number_of_clusters_in_a_data_set" rel="noreferrer">Elbow Method</a>  for this.
  Are there any packages in R which perform clustering using the Elbow Method for finding the optimum number of clusters.</p>