Re: [R] Grahpics problem

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
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



R-help_at_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 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.