[R] Axis label spanning multiple plots
Andre Nathan
andre at digirati.com.br
Mon Jun 1 22:03:06 CEST 2009
Hello
On Wed, 2009-05-27 at 13:38 -0600, Greg Snow wrote:
> Create an outer margin (see ?par), then use mtext to put the title in the outer margin.
Sorry for taking that long to reply...
I created an outer margin with
par(oma = c (0, 2, 0, 0))
and then did
par(mfrow = c(2, 1))
plot(...)
plot(...)
mtext("title 1", side = 2, outer = T)
With that, the text "title 1" appears to the left of the second plot,
and not to the left of both plots, centered between them, which is what
I was trying to do. Is there a way to accomplish that (without manual
text positioning, that is)?
Thanks,
Andre
More information about the R-help
mailing list