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

st: RE: RE: Problem with legend option - bug?


From   "David Harrison" <David@icnarc.org>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: Problem with legend option - bug?
Date   Fri, 4 Feb 2005 16:58:19 -0000

I should also have said, there is more information on this in the help for "legend_option" under the subheading "Use of legends with by()" - essentially if you are changing the location of the legend (or in this case whether it appears at all) it goes inside the -by()-, if you are changing the contents of the legend it goes outside.

David
david@icnarc.org

-----Original Message-----
From: David Harrison 
Sent: 04 February 2005 16:54
To: statalist@hsphsun2.harvard.edu
Subject: st: RE: Problem with legend option - bug?


-legend()- needs to be given as a suboption of -by()-, so make it -by(sex, legend(off))-

David
david@icnarc.org

-----Original Message-----
From: Ricardo Ovaldia [mailto:ovaldia@yahoo.com]
Sent: 04 February 2005 16:46
To: statalist@hsphsun2.harvard.edu
Subject: st: Problem with legend option - bug?


Dear all,

I wanted to what I tough was a simple graph but I am
having trouble suppressing the legend when I use the
by() option. What am I doing wrong? Here id the data
and command:

. cl

            or      ub         lb    copies      sex
  1.         1       .          .         0   Female
  2.      .645    .478        .87         1   Female
  3.      .382    .209       .699         2   Female
  4.         1       .          .         0     Male
  5.      .978    .727      1.316         1     Male
  6.     1.128    .686      1.853         2     Male

. graph twoway (rcap lb ub copies) (scatter or
copies), by(sex) yscale(log) legend(off)  

Everything works by legend(off) is ignored.

Thank you,
Ricardo.


 

=====
Ricardo Ovaldia, MS
Statistician 
Oklahoma City, OK

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
*
*   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/



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