Statalist


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

st: Re:


From   "Alan Neustadtl" <[email protected]>
To   [email protected]
Subject   st: Re:
Date   Tue, 22 Jan 2008 15:22:11 -0500

You can try using the order sub-option for the legend option.  For example,
legend(label(1 "XXX") label(2 "YYY")  order(1 2)

Best,
Alan

On Jan 22, 2008 2:46 PM, jo la frite <[email protected]> wrote:
> 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/
>
*
*   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