Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: turn off legend of scatter plot


From   Bhoom Suktitipat <[email protected]>
To   [email protected]
Subject   Re: st: RE: turn off legend of scatter plot
Date   Tue, 29 Jul 2008 01:51:36 -0400

Thank you very much, Matt.
It works well now. :-)

~Bhoom






On Tue, Jul 29, 2008 at 1:01 AM, Matt Spittal
<[email protected]> wrote:
> Hi Bhoom,
>
> I think you need to place the legend commands within the -by- statement. See the last line of this example.
>
> sysuse auto, clear
> gen logprice = log(price)
> twoway scatter logprice weight, msymbol(oh) || ///
>        scatter logprice weight if logprice>8, msymbol(circle) mcolor(red) ||, ///
>        xscale(noline) ytitle(-log(p-value)) xtitle(Position) xtick(none) xlabel(none) ///
>        by(foreign, legend(off))
>
>
> -- Matt
> [email protected]
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Bhoom
> Suktitipat
> Sent: Tuesday, 29 July 2008 2:36 PM
> To: [email protected]
> Subject: st: turn off legend of scatter plot
>
>
> Dear Statalister,
>
> I need a little help turning off graph legend
>
> Here is what I have
>
> twoway (scatter logp pos,msymbol(oh)) || (scatter logp pos if logp>4,
> msymbol(circle) mcolor(red) mlabel(snp)), xscale(noline)
> ytitle(-log(p-value)) xtitle(Position) by(trait) xtick(none)
> xlabel(none) legend(off)
>
> I'm using Stata 10. I specified "legend(off)" but I still got the
> legend label at the bottom.
> How can I get rid off it. Is there something wrong with my code?
>
> Thank you very much.
>
> Sincerely,
> Bhoom
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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