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

st: Legend with overlaid twoway


From   "Naji Nassar (MIReS)" <[email protected]>
To   "Stata-L (E-mail)" <[email protected]>
Subject   st: Legend with overlaid twoway
Date   Fri, 9 Jul 2004 12:02:58 +0200

Hi all


I'm trying to change the legend of my graph (3 lines, and a by option)
twoway (line Ratiopen PdfMag if (Rarete==0 & Report == 1 & (PdfBrd < 0.06 &
PdfBrd > 0.04) & HetMag == 20) ,ylabel(0(0.25)1)) (line Ratiopen PdfMag if
(Rarete==0 & Report == 1 & (PdfBrd < 0.06 & PdfBrd > 0.04) & HetMag == 50)
,ylabel(0(0.25)1)) (line Ratiopen PdfMag if (Rarete==0 & Report == 1 &
(PdfBrd < 0.06 & PdfBrd > 0.04) & HetMag == 80) ,ylabel(0(0.25)1)),
by(HetBrd, legend( 1 "Weak" 2 "Medium" 3 "Strong" ) note("") title(No
Report) iyaxes ixaxes) ytitle("Penetration rate") note("") xtitle("Share of
preferences" "Brand heterogeneity") xsize(4) ysize(4)

I'm still havin 'Ratiopen' at the legend (3 times). I'd like to avoid
retructuring the data (3 variables rather than overlaying 3 graphs)

Note that PDfBrd==0.05 gave 'no observation' while it's the only value
between 0.04 & 0.06)

Best regards & TiA
Naji



*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index