[R] R graphics

Earl F. Glynn efg at stowers-institute.org
Thu Jul 21 19:11:29 CEST 2005


"Sam Baxter" <s.j.baxter at reading.ac.uk> wrote in message
news:42DFA00E.2090506 at rdg.ac.uk...
> 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?

The default par()$mar is c(5,4,4,2) + 0.1 and can be reduced.

For example:
par(mfrow=c(4,4), mar=c(3,3,0,0))

for (i in 1:16)
{
  plot(0:10)
}

efg
--
Earl F. Glynn
Bioinformatics Department
Stowers Institute for Medical Research




More information about the R-help mailing list