# Button to select different dataframe

**URL:** <https://community.plotly.com/t/button-to-select-different-dataframe/10629>\
**Category:** Plotly R\
**Created:** [June 1, 2018, 10:21am UTC](https://community.plotly.com/t/button-to-select-different-dataframe/10629 "2018-06-01T10:21:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sophiec](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@sophiec](https://community.plotly.com/u/sophiec)\
**Post date:** [June 1, 2018, 10:21am UTC](https://community.plotly.com/t/button-to-select-different-dataframe/10629/1 "2018-06-01T10:21:46Z")

</div>

Hello,  
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.
