title: How to extract points from clusplot graph?
body: <p>I’m trying to extract the points (IDs) that occur in both ellipses from the graph produced by the function clusplot below.</p>
  
  <pre><code>    library(cluster)
      # Creates a sample data set.
      y &lt;- matrix(runif(5000,max=1,min=0), 1000, 5, dimnames=list(paste("g", 1:1000, sep=""), paste("t", 1:5, sep=""))) 
      kc &lt;- kmeans(y, centers=2)
      # plot kmeans clusters
      clusplot(y, kc$cluster, color=TRUE, shade=TRUE,labels=4, lines=0)
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/H1Zd4.png" alt="enter image description here"></p>