Thanks Gabor. mar= and oma= by themselves won't be able to do it. layout() is necessary per Jim's post. But now I am stuck with another problem when I tried to define the height of each chart:
layout(rbind(1,2)) par(mar=c(0,4,4,2),pin=c(4,2)) plot(rnorm(1:3),xaxt="n",xlab="") par(mar=c(5,4,0,2),pin=c(4,0.5)) plot(rnorm(1:3)) somehow if pin is used, it creates more space between the charts. I don't know where the space comes from. I mean, mar= is already set to zero for the relevent sides. On 12/31/07, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > > Check out: > > http://research.stowers-institute.org/efg/R/Graphics/Basics/mar-oma/index.htm > > On Dec 31, 2007 11:53 AM, tom soyer <[EMAIL PROTECTED]> 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@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. > > > -- Tom [[alternative HTML version deleted]] ______________________________________________ R-help@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.