Re: [R] R graphics

From: Sundar Dorai-Raj <sundar.dorai-raj_at_pdf.com>
Date: Thu 21 Jul 2005 - 23:46:21 EST

Sam Baxter wrote:
> Hi
>
> I am trying to set up 16 graphs on one graphics page in R. I have used
> the mfrow=c(4,4) command. However I get a lot of white space between
> each graph. Does anyone know how I can reduce this?
>
> Thanks
>
> Sam
>

Two options:

  1. play around with the `mar' parameter in ?par.
  2. (Preferred) Use the lattice package. See, for example:

library(lattice)
trellis.device(theme = col.whitebg())
z <- expand.grid(x = 1:10, y = 1:10, g = LETTERS[1:16]) xyplot(y ~ x | g, z)

HTH, --sundar



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jul 22 00:02:20 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:53 EST