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
[EMAIL PROTECTED]
(801) 408-8111
 
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Marcin Kozak
> Sent: Friday, February 22, 2008 12:20 PM
> To: r-help@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@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.
> 

______________________________________________
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.

Reply via email to