I would like to make Stata use the value labels for my variable
<marEduc> as the descriptive text in the legend for a scatterplot. See
below - right now, I have specified the descriptive text specifically.
Is there a way to get Stata to do this automatically?
twoway (connected aRate year if marEduc==1)
(connected aRate year if marEduc==2)
(connected aRate year if marEduc==3)
(connected aRate year if marEduc==4)
(connected aRate year if marEduc==5)
(connected aRate year if marEduc==6),
legend(label(1 "Unmarried/<12 yrs")
label(2 "Unmarried/12 yrs")
label(3 "Unmarried/13+ yrs")
label(4 "Married/<12 yrs")
label(5 "Married/12 yrs")
label(6 "Marred/13+ yrs")) ;