Dear Statalist,
I want to make a graph describing stack quartile constitution bar graph total to 100%.
My dataset consists of
area: area code 31 areas in total
quartile: social development quartile 1-Q1 2-Q2 3-Q3 4-Q4
q_num: number of sub-areas in different quartiles
percent: quartile composition
This is my dataset google drive link
https://drive.google.com/file/d/0Bz83KppKhKQ6WjlmRUVBUzlTNUU/view?usp=sharing
I tried the command below:
and only get this graph:
My problems:
1)the x-axis percent is not equal to 100,
2)the layout of areas label are too condensed, anyway to extend the y-axis space?
3)I want to change the order of areas according to the ranking of the proportion of first by quartile=4 and then by quartile=3, quartile=2, consequently, since not every area has quartile=4, quartile=3, quartile=2.
I am appreciated anyone can help me out~
Many thanks!
I want to make a graph describing stack quartile constitution bar graph total to 100%.
My dataset consists of
area: area code 31 areas in total
quartile: social development quartile 1-Q1 2-Q2 3-Q3 4-Q4
q_num: number of sub-areas in different quartiles
percent: quartile composition
This is my dataset google drive link
https://drive.google.com/file/d/0Bz83KppKhKQ6WjlmRUVBUzlTNUU/view?usp=sharing
I tried the command below:
catplot quartile area [fw=q_num], asyvars stack percent(quartile) legend(rows(1) stack)
My problems:
1)the x-axis percent is not equal to 100,
2)the layout of areas label are too condensed, anyway to extend the y-axis space?
3)I want to change the order of areas according to the ranking of the proportion of first by quartile=4 and then by quartile=3, quartile=2, consequently, since not every area has quartile=4, quartile=3, quartile=2.
I am appreciated anyone can help me out~
Many thanks!
Comment