Dear All,
I generated a catplot with the following code:
The graph shows the percentage of each answer of a survey question for different sectors (sectors 15-72, each bar represent one sector). As shown in the graph attached, I found out the percentage of each bar does not add up to 100%, I guess it's because Stata count all of the sectors together as 100% instead of each individual one as 100%.
I also tried generating the graph for each sector separately then combine the individual graphs together, it worked, but the graph with over 30 subgraphs is not as good-looking as just having bars as each sector. So I still would like to use the below graph form. I'm wondering if there is a way to make the percentage of each bar to 100%.
Any help will be appreciated!
Thank you very much for your time!
Best,
Craig
I generated a catplot with the following code:
Code:
catplot question1, over(sector) stack asyvar percent blabel(bar, position(center) format(%3.1f) size(half_tiny)) ysize(20) xsize(20)
I also tried generating the graph for each sector separately then combine the individual graphs together, it worked, but the graph with over 30 subgraphs is not as good-looking as just having bars as each sector. So I still would like to use the below graph form. I'm wondering if there is a way to make the percentage of each bar to 100%.
Any help will be appreciated!
Thank you very much for your time!
Best,
Craig
Comment