I am using the R programming language. I am trying to follow this tutorial over here for interactive time series visualization: https://plotly.com/r/custom-buttons/
I