How to change plotly legendstatus of trace n with a generic button + selectInput through javascript in R shiny
问题 Thanks to answers on this previous question, I have developed a plotly plot with buttons linked to its legend , where clicking the legend changes the state of a reactive variable containing T/F state for each of them, and thus re-renders the actionbuttons linked to each trace (data group). The other javascript does the same in opposite direction, clicking a button hides/shows that trace + legend item in the plot . Now i'm hoping to add another interaction through a new button + selectinput