how to (x,y) values from xy plane in R