I’m trying to extract the points (IDs) that occur in both ellipses from the graph produced by the function clusplot below.
library(cluster)
# Creates a sample data set.
y <- matrix(runif(5000,max=1,min=0), 1000, 5, dimnames=list(paste("g", 1:1000, sep=""), paste("t", 1:5, sep="")))
kc <- kmeans(y, centers=2)
# plot kmeans clusters
clusplot(y, kc$cluster, color=TRUE, shade=TRUE,labels=4, lines=0)