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

st: overlay symbols in graph legend?


From   chris wallace <c.wallace@qmul.ac.uk>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   st: overlay symbols in graph legend?
Date   06 Apr 2004 13:26:00 +0100

I am trying to create a black and white line graph of 9 variables.

There aren't really enough obviously distinct clpatterns for this, so
I've tried to be a bit inventive(!)  What I'd like to do, is use
-connected-, but with very few markers.  I'm not able to use connected
directly because I am plotting curves (output from another program) so
the markers overlap.

Instead I've generated a new "m" variable for each "line" variable I'm
plotting with values at only a few points, and used

twoway (line l1-l9 x) (scatter m1-m9 x)

This gives me the lines I want, but now I'd like to overlay the legends
too, so that the variable label for l1 is put beside a line with a
marker in the middle, as if I'd used -connected-.

To give an idea of what I want, here's the graph "so far":
http://www.qmul.ac.uk/~hhw159/manylines.png
(it's currently in colour to make things easier for me - I'm loooking at
several of these - but will eventually be black and white).

Many thanks for any suggestions, Chris.



*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index