Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: adding lines to graph


From   "Neil Shephard" <[email protected]>
To   [email protected]
Subject   Re: st: adding lines to graph
Date   Tue, 20 May 2003 15:44:24 +0100

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index