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

RE: st: Persistent graph legends using by()


From   "Wallace, John" <John_Wallace@affymetrix.com>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Persistent graph legends using by()
Date   Wed, 16 Jun 2004 16:37:36 -0700

Thanks Nick, that did the job.

-----Original Message-----
From: Nick Winter [mailto:nw53@cornell.edu] 
Sent: Wednesday, June 16, 2004 4:33 PM
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: Persistent graph legends using by()

In this case, the "legend(off)" should be a suboption of by():

   . twoway ... , by(UNIT , legend(off) ) ...

See the section titled "Use of legends with by()" in -help by_option- (or 
the equivalent manual entry, I assume; I don't have them at hand).

--Nick Winter

At 04:14 PM 6/16/2004 -0700, you wrote:
>Hi Statalisters
>I have a graph of some data I'm pretty pleased with, but I don't want a
>legend on it.  Unfortunately, Stata is insisting on one:
>
>. twoway (scatter mean desc if parttag) (scatter u95 desc if parttag,
>msymbol(none) mlabel(cap) mlabposition(0)) (scatter l95 desc if parttag,
>msymbol(none) mlabel(cap) mlabposition(0)), by(UNIT)
>ylabel(, angle(horizontal) labsize(small))
>xlabel(, valuelabel labsize(small)) legend(off)

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