Hi everyone, I have a problem that's wrinkling my brain. Is it possible to group all the bars of the same color and swap the variables in the x-axis with those in the legend? So that each cluster of bars on the x-axis are my facility domains (v1-4: Facility Capacity, Learning Environment, Infrastructure, Self Assessment) and the coloring is sorted by Hospital # (1-6)?

Do I have to switch the way my variables are set up or is there a way to recode the graph command? Thanks!
Code:
graph bar (mean) v1 (mean) v2 (mean) v3 (mean) v4, over(Hospital)
Do I have to switch the way my variables are set up or is there a way to recode the graph command? Thanks!

Comment