Hello,
I am using a graph to indicate trends in test scores over time. Test scores are at the year level. In 2004, the format of the test changed, and I would like to indicate that in my graph. However, in defining my marker label value, I am use an asterisk in (*) to indicate levels that are significantly different from the base year. I therefore need to another way to indicate that 2004 (and the years after) reflect a different test format. These values could be bolded, italicized, or have a subscript after them to indicate that they are a different test format. I have not seen anything that allows one to do that in marker label values (though I have seen tips on how to bold, italicize, etc., text in graph titles). If anyone has any suggestions, I would appreciate it. The relevant portions of my code are included, where boys' reading scores are plotted against the var "nmfrl9". Thank you.
Christina
// Generate labels for graphs
label define boyread 1971 "1971" 1980 "1980*" 1984 "1984*" 1990 "1990" 1992 "1992" 1994 "1994*" 2004 "2004*" 2008 "2008*" 2012 "2012*"
// Graph
twoway (scatter boyread9 nmfrl9, msymbol(oh) mlabel(boyreadyear) mlabsize(small) mlabv(pos) mcolor(purple) mlabcolor(purple)) ///
(lfit boyread9 nmfrl9, lcolor(black) lwidth(vthin)) ///
ytitle("NAEP scores", size(small)) xtitle("") xscale(range(.05 .35)) xlabel(.05 ".05" .1 ".10" .15 ".15" .20 ".20" .25 ".25" .30 ".30" .35 ".35", labsize(small)) ///
ylab(200(10)250, labsize(small)) yscale(r(200 250)) ///
note("Panel A: Boys", pos(11) size(*1.05) color(black*2) ring(-1)) xsize(7)
I am using a graph to indicate trends in test scores over time. Test scores are at the year level. In 2004, the format of the test changed, and I would like to indicate that in my graph. However, in defining my marker label value, I am use an asterisk in (*) to indicate levels that are significantly different from the base year. I therefore need to another way to indicate that 2004 (and the years after) reflect a different test format. These values could be bolded, italicized, or have a subscript after them to indicate that they are a different test format. I have not seen anything that allows one to do that in marker label values (though I have seen tips on how to bold, italicize, etc., text in graph titles). If anyone has any suggestions, I would appreciate it. The relevant portions of my code are included, where boys' reading scores are plotted against the var "nmfrl9". Thank you.
Christina
// Generate labels for graphs
label define boyread 1971 "1971" 1980 "1980*" 1984 "1984*" 1990 "1990" 1992 "1992" 1994 "1994*" 2004 "2004*" 2008 "2008*" 2012 "2012*"
// Graph
twoway (scatter boyread9 nmfrl9, msymbol(oh) mlabel(boyreadyear) mlabsize(small) mlabv(pos) mcolor(purple) mlabcolor(purple)) ///
(lfit boyread9 nmfrl9, lcolor(black) lwidth(vthin)) ///
ytitle("NAEP scores", size(small)) xtitle("") xscale(range(.05 .35)) xlabel(.05 ".05" .1 ".10" .15 ".15" .20 ".20" .25 ".25" .30 ".30" .35 ".35", labsize(small)) ///
ylab(200(10)250, labsize(small)) yscale(r(200 250)) ///
note("Panel A: Boys", pos(11) size(*1.05) color(black*2) ring(-1)) xsize(7)
Comment