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

[no subject]



What you did can be tweaked to get what you 
want, but for similar problems I favour this
kind of approach (and indeed -separate- was 
written largely for this purpose): 

separate HbL, by(sex) 
scatter HbL? HbH , legend(order(1 "male" 2 "female")) 

Nick 
n.j.cox@durham.ac.uk 

Donald Spady
> 
> when I plot twoway (scatter HbL HbH if sex==1) (scatter HbL HbH if 
> sex==2)  I expect to get an overlaid plot with corresponding 
> HbL & HbH 
> having one symbol if sex==1 and another symbol if sex == 2.  I get 
> different symbols, but in the legend box I get a blue diamond 
> signifying 
> HbL and a brown diamond signifying HbL.  That's right, both  
> signify HbL 
> and neither one signifies sex, which I expected.  What is 
> going on?  What 
> am I doing (or interpreting) wrong?

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