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/