Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Legend


From   "Scott Merryman" <scott.merryman@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Legend
Date   Fri, 12 Dec 2008 14:13:56 -0600

The -label()- suboption only over writes the text.  The -order()-
suboption specifies which keys are to appear in the legend.

sysuse auto,clear
scatter mpg price gear turn trunk weight, legend(order(3 "Cat" 4 "Dog"))


Scott

On Fri, Dec 12, 2008 at 2:05 PM,  <jasonm@ucla.edu> wrote:
> Currently my legend for my twoway scatter plot has 10 items. I just want the
> legend to contain two items. So far I have this:
> legend(label(3 "Cat") label(4 "Dog"))
>
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index