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]]

