'Convert Tableau filter interactions onto R

I've been using Tableau to visualise some data on activity counts at different sites. I'm trying to convert to using R studio instead. However, I'm facing some issues. How do I plot these visualisations on R (where there are 3 categories of X and Y. enter image description here

I've also attached a screenshot of the excel sheet.

enter image description here

Please advise, thank you!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source