Re: [R] par(mfrow,mai) and multiple plot problem

From: Robin Hankin <>
Date: Mon 10 Jul 2006 - 20:41:38 EST

[apologies for possible multiple posting]

Hi Joris

great suggestion! I never thought to use layout() in this way.

If I have


nf <- layout(matrix(

                       16,17,00,18,00,19),8,6,byrow=TRUE), c(1,4,  
1,4, 1,4), c(1,4,1,4,1,4,1,4), TRUE)

This is exactly what I want.

I hadn't appreciated that the empty rows and columns would be clear.

How best to put text in boxes 1,2,3 (that used to be main() and vertical text in
boxes 4,8,12,16 (that used to be ylab)?

best wishes


On 10 Jul 2006, at 10:27, Joris De Wolf wrote:

> Check
> ?layout
> It gives you more flexibility than
> par(mfrow=c(a,b))
> For instance, you can define your margins between the graphs as
> cells in the layout without filling them by a plot.
> Joris
> Robin Hankin wrote:
>> Hi
>> I'm having difficulty with a multiple plot.

Robin Hankin
Uncertainty Analyst
National Oceanography Centre, Southampton
European Way, Southampton SO14 3ZH, UK
  tel  023-8059-7743

______________________________________________ mailing list
PLEASE do read the posting guide!
Received on Mon Jul 10 20:45:31 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 10 Jul 2006 - 22:16:00 EST.

Mailing list information is available at Please read the posting guide before posting to the list.