Re: [R] Grahpics problem

From: Duncan Murdoch <>
Date: Fri, 15 Jun 2007 09:02:03 -0400

On 6/15/2007 8:13 AM, Wachtel, Mitchell wrote:
> To the group:
> A marvelous thing is combining graphs with the par function, but there
> remains an issue. What if you wish to put a title on top of the set of
> graphs or a general x or y axis label? How does one do this?

Use mtext() to write to the outer margins, but remember first to create some space there. For example,

 > par(oma=c(0,0,2,0),mfrow=c(2,2))
 > plot(1)
 > plot(2)
 > plot(3)
 > plot(4)
 > mtext("Main title", side=3, outer=TRUE)

Duncan Murdoch mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Fri 15 Jun 2007 - 13:06:43 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 15 Jun 2007 - 13:32:08 GMT.

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