Statalisters
I believe that this somewhat arcane syntax is likely to puzzle many
users who attempt to use the -by()- option with the usual (non-nested)
-legend()- option. Would it be possible for the Stata parser to issue a
warning message whenever a user does this? I recently ran into this
same problem and it took me a while to track down David's explanation.
Bill
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of David
Harrison
Sent: Friday, February 04, 2005 10:58 AM
To: [email protected]
Subject: st: RE: RE: Problem with legend option - bug?
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
[email protected]
-----Original Message-----
From: David Harrison
Sent: 04 February 2005 16:54
To: [email protected]
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
[email protected]
-----Original Message-----
From: Ricardo Ovaldia [mailto:[email protected]]
Sent: 04 February 2005 16:46
To: [email protected]
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/
*
* 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/