Set the inner margins to be small (the distance you want between the 2 plots),
then set the outer margin big enough to hold the x axis on the bottom plot.
Details on setting the margins is in ?par in case you don't know or remember
them.
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Filoche
> Sent: Thursday, September 16, 2010 9:46 AM
> To: r-help at r-project.org
> Subject: [R] Help with graphic margin
>
>
> Hi everyone.
>
> I would like to make a graphic with 2 subplots (lets say A and B). For
> instance, I use :
>
> par(mfcol = c(2,1));
>
> The 2 subplots use the same X axis. So I provide no tics labels and no
> xlab
> for the top plot. I would like the second plot to be right bellow the
> first
> one (small margin).
>
> So my question is how I can keep a small gap between the 2 plots while
> having enough space under the second plot to insert xtics-labels +
> xlab.
>
> Hope I have been clear enough!
>
> With regards,
> Phil
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Help-with-
> graphic-margin-tp2542469p2542469.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.