Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • bolding and moving labels in scatter plot

    Hello,

    I did not find a way to bold the labels in the graph below. Does anyone know how to do it? Also I tried to move manually the labels but Stata did not allow me. Doing it through the option - mlabgap - would be too exhausting. I would like to find a way to make the labels more visual. Could anyone help me?

    Code:
    twoway lpolyci percap_total prop60plus if year==2015, degree(2) nofit color(%40) || ///
    scatter percap_total prop60plus if year==2015 & d_country==1 & selection==1 & location!="Brazil", ///
    msymbol(x) mla(location) mlabsiz(1.8) mcolor(blue*1.3) mlabcol(blue*1.3) msize(vsmall) || ///
    scatter percap_total prop60plus if year==2015 & d_country==1 & selection==0, ///
    msymbol(x) mcolor(blue*1.3) msize(vsmall) || ///
    scatter percap_total prop60plus if year==2015 & location=="Brazil", ///
    msymbol(o) mla(location) mlabsiz(1.8) mcolor(red*1.2) mlabcol(red*1.2) || ///
    scatter percap_total prop60plus if year==2015 & d_country==0, ///
    msymbol(o) mla(location) mlabsiz(1.8) mcolor(black) mlabcol(black) ///
    ytitle("health spending per capita") xtitle("% population > 60 years old") ///
    ylab(0(2000)10000, grid) ysc(range(0 10000)) ylab(,labsize(vsmall) format(%15.0fc)) ///
    xlab(0(5)35, grid) xsc(range(0 35)) xlab(,labsize(vsmall)) ///
    graphregion(color(white)) legend(off) name(graf_disp15_pop, replace)
    Click image for larger version

Name:	graf_disp15_pop.png
Views:	1
Size:	64.2 KB
ID:	1447322
Working...
X