I'm using the xtline command to generate the chart below. My data is expressed with use of the quarterly intervals. I would like to add a vertical line corresponding to a specific day. So for example, in the chart below I would like the line to correspond to the event that took place on 11 November 2010.

Code
It appears that it is still not possible to upload dta files directly to the forum. The attached data is in Excel. Time series:
Code
Code:
xtline measure, overlay /// plot1(lwidth(medthick) lpattern(dash_dot)) /// plot2(lwidth(medthick) lpattern(shortdash)) /// plot3(lwidth(medthick) lpattern(solid)) /// plot4(lwidth(medthick) lpattern(longdash)) /// title("Example", size(medium)) /// ytitle("Some measure", size(small)) /// xtitle("`xaxtitle'", size(small)) /// ylabel(, labsize(vsmall)) /// xtitle(, size(small)) /// xlabel(, labsize(vsmall) alternate) /// xline(20) /// name(example, replace)
It appears that it is still not possible to upload dta files directly to the forum. The attached data is in Excel. Time series:
Code:
gen date = quarterly(time, "YQ") format %tqCCYY-!Qq date xtset group date
Comment