'Re-creating a graph
I want to re-create this graph in Stata.

But I am missing some elements in my code. The point (0) of x-axis and y-axis are coming different. My code is below
twoway (scatter wage educ if female==1, msymbol(smcircle) mfcolor(ltblue) mlcolor(blue)) ///
(scatter wage educ if female==0, mcolor(orange) msymbol(smcircle_hollow)) ///
(lfit wage educ if female==0, lcolor(dkorange) lwidth(medthick) lpattern(dash)) ///
(qfit wage educ if female==1, lcolor(blue) lwidth(medthick)), ///
ytitle(Wage $/hr) ytitle(, orientation(horizontal) margin(small)) ylabel(-5(5)25) ///
xtitle(Years of Education) xlabel(0(5)20) ///
title(Figure4: More educated people earn more) ///
note(, ring(0)) legend(off) ///
graphregion(fcolor(white) lcolor(white)) ///
plotregion(margin(zero) fcolor(white))
Can someone suggest the missing commands?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
