Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down at the end of May, and its replacement, **statalist.org** is already up and running.

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

From |
tashi lama <ltashi32@hotmail.com> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
RE: st: Combining seperate graphs into one |

Date |
Wed, 6 Jun 2012 19:26:19 +0000 |

Is there a command to have two charts in diff. xaxis, one top of other both starting with yaxis=0? Yaxis could be on the same side or opposite sides. ---------------------------------------- > Subject: Re: st: Combining seperate graphs into one > From: sandersn@stanford.edu > Date: Wed, 6 Jun 2012 11:47:58 -0700 > To: statalist@hsphsun2.harvard.edu > > 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 <yogout@gmail.com> 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 <sebasnicaise@hotmail.com>: > >> 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/ * * 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/

**Follow-Ups**:**Re: st: Combining seperate graphs into one***From:*Nick Cox <njcoxstata@gmail.com>

**References**:**st: Combining seperate graphs into one***From:*sebas nicaise <sebasnicaise@hotmail.com>

**Re: st: Combining seperate graphs into one***From:*urbain thierry YOGO <yogout@gmail.com>

**Re: st: Combining seperate graphs into one***From:*Nick Sanders <sandersn@stanford.edu>

- Prev by Date:
**Re: st: Finite population correction with clustering of SE at a different level than the strata** - Next by Date:
**st: Duplicate rows in long dataset** - Previous by thread:
**Re: st: Combining seperate graphs into one** - Next by thread:
**Re: st: Combining seperate graphs into one** - Index(es):