Statalist


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

[no subject]


From   jo la frite <[email protected]>
To   [email protected]
Date   Tue, 22 Jan 2008 11:46:55 -0800 (PST)

Dear Statalisters,

I am trying to create the legend for a bar graph. I
have 2 pairs of bars (4 in total). I only want the
legend to appear for bars 1 & 2 since the legend for
bars 3 & 4 are identical to 1 & 2. I can have them
appear for all 4 or for none , but not for the first
2. I have typed :

 bar(1,color(gray)) bar(2,color (black)) bar(3,color
gray)) bar(4,color(black)) legend( label(1 "XXX")
label(2 "YYY") ) 

But Stata automatically added labels for bars 3 & 4.

Can anyone help please?  Thanks.

Jo


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

*
*   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