Hello,
I am trying to plot multiple graphs onto one set of axis.
I have one binary variable: OUTCOME (yes, no)
I have four categorical variables: GREEN (1,2,3), PINK (1,2,3), RED(1,2,3), BLUE (1,2,3)
I have created the following graphs to show the proportions of each category in variable GREEN for each OUTCOME.
graph hbar if OUTCOME == 1, over(GREEN) asyvars stack blabel(bar, format(%2.0f))
graph hbar if OUTCOME == 0, over(GREEN) asyvars stack blabel(bar, format(%2.0f))
I would like these on one set of axis, along with similar pairs of plots for variables PINK, RED and BLUE. So in total there would be 8 bar charts on one graph.
I have tried using tabplot, graph combine and graph twoway commands but I have had no success.
Could you suggest how I combine all these plots onto one graph?
Thank you very much
Seren
I am trying to plot multiple graphs onto one set of axis.
I have one binary variable: OUTCOME (yes, no)
I have four categorical variables: GREEN (1,2,3), PINK (1,2,3), RED(1,2,3), BLUE (1,2,3)
I have created the following graphs to show the proportions of each category in variable GREEN for each OUTCOME.
graph hbar if OUTCOME == 1, over(GREEN) asyvars stack blabel(bar, format(%2.0f))
graph hbar if OUTCOME == 0, over(GREEN) asyvars stack blabel(bar, format(%2.0f))
I would like these on one set of axis, along with similar pairs of plots for variables PINK, RED and BLUE. So in total there would be 8 bar charts on one graph.
I have tried using tabplot, graph combine and graph twoway commands but I have had no success.
Could you suggest how I combine all these plots onto one graph?
Thank you very much
Seren
Comment