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

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.

I will check on your suggestion
Good Day