Hi, I am relatively new to Stata and am trying to plot a two-way histogram to compare education expenditure between males and females. The values range from 0-140000 dollars.
Code:
twoway (histogram schoolspend if female == 1, fcolor(navy) lcolor(navy) ///
lpattern(solid))(histogram schoolspend if female == 0, fcolor(none) ///
lcolor(black) lpattern(solid)) if african == 1, xtitle(Spend) ///
title(Gender Education spend Distributions) legend(on order(1 "Female" 2 "Male")) ///
scheme(s1manual)Any assistance would be appreciated
0 Response to Two way histogram
Post a Comment