How to achieve click and brush with plotly in R?
Just like this. But plotly use PlotlyOutput(), not PlotOutput(), so it could only catch the coordinate of the click. How to show the detailed information after the click?

In the example, <- event_data(“plotly_selected”, source = “subset”)

gave you the selected point and you can use$x and$y to subset your dataframe to get desired detail

Thank you very much! Your answer is very helpful.