Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

RE: Re: st: RE: to remove 'legends' in combine graph


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   RE: Re: st: RE: to remove 'legends' in combine graph
Date   Wed, 17 Mar 2010 15:57:26 +0100

<>

The -legend- option takes as its argument the name of the graph whose legend
should serve as the only legend in the combined graph. So you have to format
there:


*************
sysuse auto, clear

loc opt i(rep78) t(mpg) overlay recast(scatter) nodraw legend(rows(1)
size(small))

xtline price if foreign, `opt' /* 
*/ name(first, replace)

xtline price if !foreign, `opt' /* 
*/ name(second, replace) 

grc1leg first second, leg(second)
*************


HTH
Martin

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Prabhat
Sent: Mittwoch, 17. März 2010 15:08
To: [email protected]
Subject: Re: Re: st: RE: to remove 'legends' in combine graph

Thank you very much everyone who replied.
It works great, But the size of lengend is still very large.
I tried with legend option, but it seems that it does not work with
"grc1leg"

my command line is-
grc1leg  ACZone0 ACZone1 ACZone2 ACZone3 ACZone4 ACZone5 ACZone6
ACZone7 , rows(2) ycommon iscale(0.4)  legend( rows(1))

In short, I need-
1. a smaller legend
2. all keys in one row

Any suggestion will be appreciated.

Thanks.

Prabhat Barnwal
International University of Japan






On Wed, Mar 17, 2010 at 9:45 PM, Kit Baum <[email protected]> wrote:
> On Mar 17, 2010, at 2:33 AM, Nick wrote:
>
>>
>> Am I the only one who would love to see this functionality included
>> within the official -graph combine- command?  Perhaps as an additional
>> option -ONELegend- or similar...
>
> One Legend to rule them all!
>
>
>
> Kit Baum   |   Boston College Economics & DIW Berlin   |  
http://ideas.repec.org/e/pba1.html
>                              An Introduction to Stata Programming  |  
http://www.stata-press.com/books/isp.html
>   An Introduction to Modern Econometrics Using Stata  |  
http://www.stata-press.com/books/imeus.html
>
>
> *
> *   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/
>

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


*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index