Dears,
I am trying to make a population pyramid graph. I did it using the following command:
here the result

As you can see the gr is not perfect and I have some difficulties to make it as I whish.
What I would like to change is the following:
1) remove those vertical lines that are showed in some bars ( I don't know why I get them);
2) have the label of group age as in this gr (in the middle but with space from the 2 charts)

3) modify the intensity of the colour (what I did in my command does not produce any change in colours)
4) and if possible do it by regions.
I copy the data of 3 regions ( I have five).
Can anyone help me?
Thanks in advance
Federica
I am trying to make a population pyramid graph. I did it using the following command:
Code:
#delimit ; twoway bar maxmaletotal age_gr , horizontal bfc("20 100 131"*0.6) || bar maxfemtotal age_gr , horizontal bfc("226 174 156"*0.6) || scatter age_gr zero, mlabel(age_gr) mlabcolor(black) msymbol(none) note("Source: Own Survey", span) xtitle("Number of people ") ytitle("Age Group Number") ytitle("") yscale(noline) ylabel(none) xlabel( -50 "50" -40 "40" -30 "30" -20 "20" -10 "10" 10(10)52) legend(off) text(15 -8 "Male") text(15 8 "Female"); #delimit cr
As you can see the gr is not perfect and I have some difficulties to make it as I whish.
What I would like to change is the following:
1) remove those vertical lines that are showed in some bars ( I don't know why I get them);
2) have the label of group age as in this gr (in the middle but with space from the 2 charts)
3) modify the intensity of the colour (what I did in my command does not produce any change in colours)
4) and if possible do it by regions.
I copy the data of 3 regions ( I have five).
Can anyone help me?
Thanks in advance
Federica
Regions | age_gr | zero | maletotal | femtotal |
A | 19-24 | 0 | -3 | |
A | 25-29 | 0 | -17 | 2 |
A | 30-34 | 0 | -23 | 2 |
A | 35-39 | 0 | -28 | 12 |
A | 40-44 | 0 | -39 | 26 |
A | 45-49 | 0 | -37 | 28 |
A | 50-54 | 0 | -45 | 52 |
A | 55-59 | 0 | -44 | 52 |
A | 60-64 | 0 | -37 | 42 |
A | 65-69 | 0 | -14 | 10 |
A | 70-74 | 0 | -1 | 6 |
A | 85 and more | 0 | -1 | |
B | 19-24 | 0 | -1 | |
B | 25-29 | 0 | -3 | |
B | 30-34 | 0 | -5 | 4 |
B | 35-39 | 0 | -8 | 2 |
B | 40-44 | 0 | -9 | 4 |
B | 45-49 | 0 | -17 | 10 |
B | 50-54 | 0 | -4 | 16 |
B | 55-59 | 0 | -11 | 10 |
B | 60-64 | 0 | -10 | 6 |
B | 65-69 | 0 | -4 | 4 |
C | 25-29 | 0 | -3 | |
C | 30-34 | 0 | -9 | |
C | 35-39 | 0 | -16 | 16 |
C | 40-44 | 0 | -16 | 6 |
C | 45-49 | 0 | -32 | 16 |
C | 50-54 | 0 | -40 | 6 |
C | 55-59 | 0 | -26 | 8 |
C | 60-64 | 0 | -18 | 10 |
C | 65-69 | 0 | -7 | |
C | 85 and more | 0 | -6 |
Comment