I'm trying to get a combined bar chart for an overview of the proportions from three different binary variables (yes/no) in three different groups. Specifically, this means that I want to show for each of the three groups (close family, wider family, not family; categories from variable 'onecareperson_3') how large the respective share of tasks (pers_care, help_hh, help_paper) taken over is.
As individual graphs, this is the code and what they currently look like (stacked bar graphs):
Code:
graph bar, over(pers_care) asyvars stack by(onecareperson_3) graph bar, over(help_hh) asyvars stack by(onecareperson_3) graph bar, over(help_paper) asyvars stack by(onecareperson_3)
Basically, I actually only want the "Yes" category plotted. Is there a command for this? Otherwise, as a workaround, I would have the category/bar portion disappear in color ...
At best, I would like to have three bars for each group next to each other with the respective "Yes" shares of the tasks (all in one row). Can this be done?
Thanks for any help!
0 Response to Combining bar graphs from different binary variables
Post a Comment