Highlight on click in ggplotly
In my chart, I want to highlight the point that has been clicked on. Minimal example:
How to zoom out to previous zoom in ggplotly R?
So, this is initial graph:
Original graph
Then this is how the graph looks after first zoom in:First zoom in
This is the second zoom in: Third zoom in.
What I’d like is to go back to the second zoom in. Is there such an option in ggplotly? I know there is a autoscale, but that returns me to the original graph. Your help will be greatly appreciated, thanks!
Why does plotly::ggplotly() not work in this case?
My plot is created with ggplot something similar to this: