Basically I am trying to create a grouped stacked bar chart for 3 variables - where two variables are part of the stacked bar - and one variable is a singular bar to the side of that.
As viewed from the image:
- I have so far created the stacked bar using Geom_col() (The purple and pink stacked bar in the image) and have also created a singular bar (the red bar) by + geom_bar() - but the issue is the singular bar just appears infront of the stacked bar
Is there a way to ensure the singular bar is to the side of the stacked bar e.g. to the left of the stacked bar - as seen in this image
I have tried facet_grid and have been unable to get that to work well for the variables I have:
which are continuous variables seen in the table
Thank you for your help!