Is there a possibility to show/hide the series interactively in a R dygraph?
The idea is to compare many time series and have for example a ticking box where one could select/deselect the series to show or hide any of them.
I could not find such an option in the dygraphs package. Such ticking legend exist for example in the package leaflet with addLayersControl().
You can do it with the package "shiny" in R Studio. No need to venture outside of R Studio (unless you really want to).
This chunk of code should work for anyone so long as you have the four packages installed. Use it as a jumping off point with your own data. I used drop down menus, but Shiny lets you use check boxes for user inputs as well. Hope this helps!