Multiple Plots Filter

Hi Friends
Is there any way to filter one plot based on another plot in R
For example in Tableau, when you click on one bar of monthly total revenue plot, other plot on revenue by state gets filtered to the month of the selected bar

Could anyone help me
Thanks

There are many ways this can be done, and it can get complicated.
Perhaps start with looking at if crosstalk can achieve what you want.

https://rstudio.github.io/crosstalk/

Thanks
I will check on your suggestion
Good Day