Jun 19, 2017

Random graphs (99): Scatterplots

regress treatments index
local r2 = round(e(r2), .01) // Round coeff.
twoway (scatter treatments index) ///
       (lfit treatments index) ///
       (scatter treatments index if inlist(cntry, "IT", "AT", "UA", "BE", "DK", "RU"), msymbol(o)) ///
      , xtitle(ART comprehensive availability) ytitle("ART treatments" "per million women 15-44 y.") ///
        title("{bf:B}", justification(left) bexpand span) ///
        xlabel(0 (1) 9) ///
        text(1500 6.6 "Denmark") ///   
        text(1500 8.6 "Belgium") ///   
        text(470  0.4 "Italy") ///
        text(400  1.6 "Austria") ///
        text(120  7.5 "Ukraine") ///
        text(210  8.0  "Kazakhstan", placement(west)) ///
        text(150  8.0 "Russia", placement(east)) ///
     legend(order(2 "Linear fit R{char 178} = `r2'") ring(0) pos(7)) name(policy, replace)