To find the actual integer that corresponds to 9/11/2001, enter the command:
display mdy(9,11,2001)
Now, I believe you will get a vertical line plotted on your graph if you
include
xline(15229)
since 15229 is the "date" integer corresponding to the date 9/11/2001.
Hope this helps.
Eldin
-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Neil Shephard
Sent: Tuesday, May 20, 2003 10:44 AM
To: [email protected]
Subject: Re: st: adding lines to graph
clara wrote...
> I have a data set over a ten year period, and created a simple line graph
to show the trend. however, i want to add in vertical lines at certain time
points to indicate when specific events occured that explain why the trend
is moving a certain way. for example, i want to add a line for
september 11, to explain why employment might have dropped so drastically.
This is for Stata 7.....
man grsym
reveals that you can add horizontal lines using yline and rline whilst
vertical lines can be drawn using xline and tline.
Hope thats of some help
Neil
Neil Shephard
Genetics Statistician
ARC Epidemiology Unit, University of Manchester
[email protected]
[email protected]
"Contrariwise, if it was so, it might be; and if it
were so it would be; but as it isn't, it ain't. That's
logic" - Tweedledee (Alice Through the Looking Glass)
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/