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

Re: st: Where should I put -, legend off- ?


From   Ichiro Fujikake <fujikake@cc.miyazaki-u.ac.jp>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Where should I put -, legend off- ?
Date   Mon, 28 Jun 2004 13:31:13 +0900

Try 

.twoway (lfit mpg weight, clcolor(red)) (scatter mpg weight, mcolor(blue)),
by(foreign, legend(off)) ytitle(Mileage)


Ichiro Fujikake
fujikake@cc.miyazaki-u.ac.jp

On 04.6.28 13:09, "Renzo Comolli" <renzo.comolli@yale.edu> wrote:

> Dear Statalist, 
> 
> I create graph here below and I don't manage to turn the legend off. Could
> anyone help me, please?
> I tried putting -,legend off- in as many places as I could, but I did not
> succeed.
> 
> My graph is
> . sysuse auto
> . twoway (lfit mpg weight, clcolor(red)) (scatter mpg weight, mcolor(blue)),
> by(foreign) ytitle(Mileage)
> 
> 
> I tried 
> . twoway (lfit mpg  weight, clcolor(red)) (scatter  mpg weight,
> mcolor(blue)), by( foreign) ytitle(Mileage) legend(off)
> . twoway (lfit mpg  weight, clcolor(red) legend(off)) (scatter  mpg weight,
> mcolor(blue) legend(off)), by( foreign) ytitle(Mileage)
> . twoway (lfit mpg  weight, clcolor(red) legend(off)) (scatter  mpg weight,
> mcolor(blue) legend(off)), by( foreign) ytitle(Mileage) legend(off)
> but the legend is still there.
> 
> 
> Thanks
> 
> Best Regards,
> Renzo Comolli
> 
> 
> *
> *   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/
> 

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