These questions helped me but the solution is still not correct.
Stacked bar chart in R
Stacked bar chart across multiple columns
Because of the questio