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

Re: st: xlines in two patterns


From   [email protected] (Vince Wiggins, StataCorp)
To   [email protected]
Subject   Re: st: xlines in two patterns
Date   Tue, 13 Dec 2005 08:18:42 -0600

Jagath Dissanayake <[email protected]> asks,

> I need to draw several xlines on a graph in two patterns(say solid
> and longdash). I can draw several xlines in a particular
> pattern(long dash) using the following command.
>
> xline( 1967 1971 1976 1982 1986 1988, lpat(longdash))
>
> But can't draw in two patterns.
>
> Can anyone suggest me a way to draw them in two patterns?

Include two -xline()- options with different -lpattern()-s.  For example,

   ... xline(1971 1982 1986 1988, lpat(dot)) xline(1967 1976, lpat(dash)) ...
    
The -xline()- and -yline()- options are what we call "merged-implicit", which
is a fancy way of saying that you can repeat the option over and over and get
something reasonable.  In this case, as noted in the "Interpretation of
repeated options" section of the entry for -help added_line_options-, that
reasonable thing is sets of lines drawn in different styles.

 
-- Vince
   [email protected]

*
*   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