Button to select different dataframe

I’m working with Plotly to develop a shiny app and I would like to have one plot for many dataframe and add a button to change the dataset. For example I’ve 3 dataframe (one for 2016, one for 2017 and one for 2018) and I want to have only one graphe and be able to select the different dataframe, is it possible ? Does anyone have a solution?
Thanks in advance.