Hi, I'm new to plotly and am hoping for help. I currently have a reactive plot that plots 1 point based on user input. Once the user input is changed, the graph is cleared and a new point is plotted. Instead, I would like to keep all points on the plot, and add additional points as the user selects them. Any tips?
plot <- plot_ly( x = vals$Leachable, y = vals$Yield, type = 'scatter', mode = 'markers') plot <- plot %>% layout(xaxis = x, yaxis = y) plot
In this case, both my x and y variable are reactive and depend on user input.