Advertisement
Sk1rm1sh

Topic01 Q6.do

Feb 25th, 2018
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. use "Data.dta"
  2. replace Est_Pop = -Est_Pop
  3. replace Est_Deaths = -Est_Deaths
  4. replace Est_Deaths = Est_Deaths / 1000
  5. replace SSA_Deaths = SSA_Deaths / 1000
  6. gen zero = 0
  7.  
  8.  
  9. #delimit ;
  10. twoway bar Est_Pop Age_Group, horizontal bfc(gs7) blc(gs7) || bar SSA_Pop Age_Group, horizontal bfc(gs11) blc(gs11) || scatter Age_Group zero, mlabel(Age_Group) mlabcolor(black) msymbol(none)
  11.  
  12. title("Established Economies vs Sub-Saharan Africa Populations")
  13.  
  14. note("Source is...", span)
  15.  
  16. xtitle("Population in Millions") ytitle("Age Group")
  17. ytitle("") yscale(noline) ylabel(none)
  18. xlabel(-100 "100" -80 "80" -60 "60" -40 "40" -20 "20" 20(20)100) mlabposition(0)
  19. legend(off) text(21 -80 "Established Market Economies") text(21 80 "Sub-Saharan Africa");
  20. #delimit cr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement