I have this simple code that creates 3 matrices and plots them:
Y=matrix(c(1,2,3,4), nrow=1) X1=matrix(c(2,3,3.5,4.5)) X2=matrix(c(0.1, 0.2, 0.6, 1.1), nrow
identify() can be used to locate points in a scatter plot by clicking with the mouse in the plot area. Hope this is what you're looking for. Check it out!
identify()