I'm trying to generate a graph with the x axis labels removed but every time I run my do file the x axis labels are still there.
When the graph is generated I can invoke the graph editor, click on the x axis and uncheck 'show labels' to remove them but how can I do this in my stata do file?
From the Stata manual I thought it was pretty simple:
But this isn't working... The full code for the graph is below:
Any idea what I'm doing wrong here?
When the graph is generated I can invoke the graph editor, click on the x axis and uncheck 'show labels' to remove them but how can I do this in my stata do file?
From the Stata manual I thought it was pretty simple:
Code:
xlabel(, nolabels)
Code:
clear use `temp'BA_FINAL_2302 twoway (connected change assess_date, /// yline(0, lpattern(shortdash) lwidth(vthin) lcolor(green)) /// tline(15Feb2016, lwidth(vvthin) lcolor(blue)) tmlabel(15Feb2016 "RT start" , add angle(vertical) labsize(*1.0)) /// tline(03Mar2016, lwidth(vvthin) lcolor(blue)) tmlabel(03Mar2016 "RT stop" , add angle(vertical) labsize(*1.0)) /// tline(30Nov2015 21Dec2015 13Jan2016 27Apr2016 18May2016 8Jun2016, lpattern(shortdash) lwidth(vthin)) /// sort mlabel(change) mlabsize(medium)), ytitle(% change) xtitle(Assessment Date) /// ylabel(, labsize(medium) angle(horizontal)) xlabel(, nolabels) /// by(, title(Subject 2302)) by(, legend(off)) by(parameter, yrescale holes (3 4 5)) graph save `output'test2302, replace
Comment