in a interactive plot_ly the event_data saves the selected data. With the below code, it is possible to reset event_data with double click on the plot
output$brush <- renderPrint({
d <- event_data("plotly_selected")
if (is.null(d)) "Click and drag events (i.e., select/lasso) appear here (double-click to clear)" else d
})
But how to reset event_data with a shiny button?
Is there a solution?