What's the best way to plot graph using AcctionButton?

We don't have enough information to help you, becuse we dont know what libraries are you using and we can't see what your data looks like. Could you please follow this guide about making reproducible examples with shiny apps?