0

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:

enter image description here

  • 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

enter image description here

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

enter image description here

Thank you for your help!

Phil
  • 5,491
  • 3
  • 26
  • 61

0 Answers0