Get datapoints in currently zoomed view

I think I have a similar question in that I would like to select datapoint on the scatter plot for filtering purposes. I have created the scatter plot as https://plot.ly/r/shinyapp-plotly-events/
and using lasso or box, I get those datapoint I want to exclude return on screen. I am just wondering if there is a way to save the return point into R directly as a vector for downstream processing. At the moment, I need to cut and paste those return value into a text file… I guess there must be a better wat to do so. Many thanks for your help.