Scripting in R: Show a simple matrix visual with f…

Hi, 

I’m just getting started with R, and I can’t find a resource for this:

I want to basically build the same exact functionality as the Matrix visual in Power BI, and add some filters to it. 

 

There are 2 columns in the “Rows” section, and 4 Sums of columns in the “Values” section. Appreciate it if someone can give me a code for this. 

 

I’ve installed R and R Studio, even played around with a few packages but I couldn’t get what I want.

Read more here: Source link