Hi, I have a variable measuring yearly income and label it:
I try to plot this variable with the following command:
However, the value labels do not appear in the chart. I was wondering if anyone can help me figure out what I am doing wrong?
Code:
label variable yearly_income "Yearly income" label define yearly_income_l 1 "<$25k" 2 "$25-50k" 3 "50-75k" 4 ">$75k" label values yearly_income yearly_income_l
Code:
twoway (hist yearly_income if year==2010, width(0.8) fcolor(none) lcolor(black) discrete) (hist `yearly_income if year==2011, color(red%50) width(0.8) discrete), xlabel(, valuelabel)
Comment