Is it possible to subset the selected data rather than only save a static graph with selected data highlighted?

hi, first of all, have to say that Plotly is an amazing tool to explore the data.

I wonder if could subset the selected data to a sub- graph object or a sub- data table.

here is an example using the gapminder data, plotting with ggplotly().

I know that plotly_data() could export raw input data table from plotly object. Is it possible to only export the selected fifteen from raw 142 lines which is manually selected and especially irregular so that couldn’t be selected by simply setting x,y cutoffs ?