[R] Drawing several pictures on a plot

Greg Snow Greg.Snow at imail.org
Fri Feb 22 20:50:35 CET 2008


The empty space is the margins around the plot.  The par function is
used to set the size of the margins using either mar or mai arguments.
Setting this to a smaller set of values will give your individual plots
more space.  You may also want to look at the oma argument to set an
outer margin (for overall titles/labels).

See ?par for the details.

Hope this helps,

-- 
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 Marcin Kozak
> Sent: Friday, February 22, 2008 12:20 PM
> To: r-help at r-project.org
> Subject: [R] Drawing several pictures on a plot
> 
> Hi,
> 
> I want to draw several pictures on one plot and do as follows:
> 
> xy<-matrix(rnorm(100,100,10),50)
> op <- par(mfrow = c(2, 2), pty = "s")
> plot(xy,ann=F);plot(xy,ann=F);plot(xy,ann=F);plot(xy,ann=F)
> par(op)
> 
> What I need now is to set the size of the pictures within 
> this plot since there is too much free space among the 
> pictures, making the plot look not that pretty. How can I do that?
> 
> Thanks,
> Marcin
> 
> ______________________________________________
> 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.
> 



More information about the R-help mailing list