Philippe,
Thank you so much for your prompt response.
Worked excellent, with the only corrections :
lpattern(solid dash "._") to
clpattern(solid dash "._")
and
lwidth(medthick) to
clwidth(medthick)
Thank you again!
Anna
___________________________________
Anna,
You are right, -glcurve- uses it's own legend and does
not seem to pay
attention to the legend you supply. Anyway, if you
want to produce
'publication quality' pictures and need maximum
control over your plots,
you will be better off splitting the estimation step
and the plotting
step: (i) use -glcurve- and save the coordinates in
new variables, then
(ii) use -twoway- to produce the final plot. For
example,
sysuse auto, clear
rename price hhsub
drop if rep78==5
rename rep78 level2
// estimate and save coordinates in new variables
glcurve hhsub [aw=weight] if level2~=.&level2~=1, ///
lorenz by(level2) glvar(gl) split pvar(p) nogr
// plot results (notice the lpattern() option for
changing the pattern -
your last question)
tw line gl* p , lpattern(solid dash "._") sort ///
|| function equality=x , lwidth(medthick) ///
legend(label(1 "Secondary") label(2 "VET") label(3
"Tertiary")
label(4 "Perfect equality")) ///
xtitle("Cumulative share of population") ///
ytitle("Cumulative share of benefits") ///
title("Equity in Educational Public Subsidies") ///
subtitle("Albania, 2005") ///
subtitle("Lorenz curve") ///
note("Source: LSMS 2005.")
Good luck,
Philippe
--- Anna Gueorguieva <[email protected]> wrote:
> GLCURVE gurus,
> any suggestions how to get the labels right?
> Currently, the graph shows "hhsub[2]" in the legend
> rather than the label I want. Also, how do I label
> the
> equity line? How do I make the lines dotted or
> dashed
> (rather than different colors)?
> Thank you in advance. Stata8 SE user.
> Anna
>
> glcurve hhsub [aw=weight] if level2~=.&level2~=1,
> lorenz by(level2) split plot(function equality=x)
> legend(label(1 "Secondary") label(2 "VET") label(3
> "Tertiary"))
> xtitle("Cumulative share of population")
> ytitle("Cumulative share of benefits")
> title("Equity in Educational Public Subsidies")
> subtitle("Albania, 2005")
> subtitle("Lorenz curve")
> note("Source: LSMS 2005.");
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/