Interactive plots


I am currently using shiny and plotly to display some scatter plots. I want to be able to color and potentially remove data points that the user clicks on.
This sort of functionality is already available with the usual plots for R.
Is this possible with plotly? If so how would I go about implementing it.

Here is exactly what I want implemented with javascript.


Hi, some of this functionality is in the works:
Here’s an example of what can be possible using with this update:

1 Like

Hi, I used the event_data feature to implement what I specified in the original post. Also, your example is really cool. I am now trying to add a data point when the user clicks on white space. It seems likes this is possible given your example. I have looked through my plotly event data and cant get it to respond to white space clicks. Do you know how to do this? Thanks again!