Interactive plots

Hello,

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. http://shiny.rstudio.com/articles/plot-interaction.html
Is this possible with plotly? If so how would I go about implementing it.

Here is exactly what I want implemented with javascript. https://plot.ly/r/click-events/

Thanks.

Hi, some of this functionality is in the works: https://github.com/ropensci/plotly/pull/416.
Hereโ€™s an example of what can be possible using with this update: https://yankev.shinyapps.io/Rapp4/

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!