try this: layout(cbind(1,2)) par(mar=c(4,4,2,0)) plot(0) par(mar=c(4,0,2,0)) plot(0, yaxt='n', ylab='')
On Nov 29, 2007 5:41 PM, Wang, Zhaoming (NIH/NCI) [C] <[EMAIL PROTECTED]> wrote: > I'm trying to put two plots side-by-side in two panels. Since the > y-axis of the two plots is the same, I want to leave out the y-axis of > the second plot. > > > > And the two plots look quite separate from each other. Is there any way > to have them stay closer to each other? I've tried to adjust mar option > of par but it has a global effect as I see the left margin of the first > plot will be adjusted as well. > > > > Below is the code fragment: > > > > r.par(mfrow=[1,2],mar=[5,4,1,1]) > > r.plot(x,hets,xlim=[0,105],xlab='Samples(%)',ylab='Heterozygosity(%)',co > l=colors,cex=0.6) > > ... > > plot(completion,hets,xlim=[40,100],xlab="Sample > Completion(%)",ylab="",col=colors,axes=False,cex=0.6) > > > > > > Thanks > > Zhaoming > > > [[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. > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem you are trying to solve? ______________________________________________ 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.