Statalist


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

Re: st: Suppress a legend in overlaid twoway graphs


From   "Elizabeth Allred" <[email protected]>
To   <[email protected]>
Subject   Re: st: Suppress a legend in overlaid twoway graphs
Date   Tue, 22 Jul 2008 15:46:56 -0400

Thanks Arun but that turns off all three keys. 

I want to turn off the THIRD key and leave the first two.

Liz

>>> On 7/22/2008 at 3:41 PM, in message
<[email protected]>, Arun Rajamohan <[email protected]>
wrote:
>>  twoway (lfit y x if disease==1) (lfit y x if disease==0) (scatter y  
>> x), legend(off)
> 
> 
> 
> On Jul 22, 2008, at 3:34 PM, Elizabeth Allred wrote:
> 
>> Hi Stata folk,
>>
>> I want to overlay 3 graphs. The first two are fitted lines for the  
>> diseased and non-diseased and the third is the actual data points.
>>
>> Something like:
>> twoway (lfit y x if disease==1) (lfit y x if disease==0) (scatter y x)
>>
>> Normally, a key (plot symbol & label) for each of the three graphs  
>> shows up in the legend but I'd like to suppress the key for the  
>> third graph, the scatter plot. How??
>>
>> Liz
>>
>> *
>> *   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