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

st: RE: overlay symbols in graph legend?


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: overlay symbols in graph legend?
Date   Thu, 8 Apr 2004 17:25:58 +0100

I am not sure I understand all the desires and constraints here. 

A graph like 

line l* x || scatter l* x, 
	ms(Oh Dh Sh Th O D S T smplus)  
	legend(order(10 11 12 13 14 15 16 17 18))  

might be a starting point. 

Nick 
[email protected] 

chris wallace
 
> 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).

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