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/