Statalist


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

st: Suppress a legend in overlaid twoway graphs


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

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index