[R] stack charts right on top of each other
jim holtman
jholtman at gmail.com
Mon Dec 31 18:39:34 CET 2007
try this to get them to butt up against each other:
layout(rbind(1,2))
par(mar=c(0,4,3,2))
plot(rnorm(1:3),xaxt="n",xlab="")
par(mar=c(4,4,0,2))
plot(rnorm(1:3))
On Dec 31, 2007 11:53 AM, tom soyer <tom.soyer at gmail.com> wrote:
> Hi,
>
> I tried to stack two charts on top of each other using the following
> R functions:
>
> par(mfrow=c(2,1))
> plot(rnorm(1:3),xaxt="n",xlab="")
> plot(rnorm(1:3))
>
> This created two charts, one on top of the other, but there is too much
> space between them. Does anyone know how to elimiate the space in between
> the charts?
>
> Thanks,
>
> --
> Tom
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem you are trying to solve?
More information about the R-help
mailing list