title: In R and using Plotly how can I extract the dataframe related to the zoom-in tool?
body: <p>This my code:</p>
  <pre><code>library(gapminder)
  
  ggplotly(ggplot(gapminder %&gt;% filter(country == &quot;Chile&quot;)) + aes(x = year, y = pop) + geom_line())
  </code></pre>
  <p>Then I use the zoom in tool:</p>
  <p><a href="https://i.stack.imgur.com/2tfkN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2tfkN.png" alt="enter image description here" /></a></p>
  <p>Then I have this output:</p>
  <p><a href="https://i.stack.imgur.com/P15Hq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P15Hq.png" alt="enter image description here" /></a></p>
  <p><strong>My question is</strong>: How can I access/extract the dataframe related to this output?</p>
  <p>Any help ?</p>