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: st: Combining seperate graphs into one


From   Nick Sanders <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Combining seperate graphs into one
Date   Wed, 6 Jun 2012 11:47:58 -0700

Hello Sebastian,

Is your final goal to have two lines on the same common x and y axis? If so, you don't need any combining commands, you can just string them together in one graph, either in parenthesis or separated by two vertical pipes "||". For example, if you wanted the leverage ratio over years for low and high groups ( and you have indicators for each category):

twoway line lev year if competitive == 1 ||  line lev year if concentrated == 1

etc. etc.

- Nick


On Jun 6, 2012, at 10:30 AM, urbain thierry YOGO <[email protected]> wrote:

> To my view, a simple way to combine graph is to use
> graph combine. for instance you make three diferrents graphs named a1 a2 a3
> to combine these graph, you use
> graph combine a1 a2 a3
> it is more tractable. But you can keep using grc1leg. Maybe the error
> arises because you have not named the graph appropriately.
> 
> 
> 2012/6/6, sebas nicaise <[email protected]>:
>> Dear all,
>> 
>> I have two seperate graphs and want to plot them together in 1 graph.
>> graph 1: leverageratio of firms in competitive industries, LEVHIGH
>> graph 2: leverageratio of firms in concentrated industries, LEVLOW
>> 
>> I have installed the grc1leg which combine graphs into one graph with a
>> common legend.
>> 
>> I use the command: grc1leg LEVHIGH.gph LEVLOW.gph, ycommon
>> 
>> However, I still get the same graph if when I use the -graph combine-
>> command, the two graphs next to eachother.
>> 
>> I assume the mistake is easy to spot however, I don't get it.
>> Can someone help me out?
>> 
>> Thank you,
>> Sebastiaan                       
>> *
>> *   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/
>> 
> 
> 
> -- 
> *Urbain Thierry YOGO
> P.h.D candidate in Economics*
> *
> *   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