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

st: RE: A question about graph


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: A question about graph
Date   Tue, 19 Apr 2005 11:27:51 +0100

Stata is confused. The comma before your 
option call to -legend()- is missing. 

Nick 
[email protected] 

Ma, Sai
 
> I am trying to generate a twoway scatter graph using STATA 8 
> but somehow my code doesn't work well.
> 
> twoway (scatter y x if sex==1, msymbol(Oh) mlcolor(red) 
> yline(2500) ytitle(Y) xtitle(X))  /*
> */  (scatter y x if sex==2, msymbol(O) mlcolor(blue))  /*
> */  legend(order(1 "Male" 2 "Female"))
> 
> 
> There is no problem to just run the first two lines, but 
> every time when I try to run the whole thing, it always 
> returns with ") required". 

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