[R] How to add overall xlabel and ylabel?

Duncan Murdoch murdoch.duncan at gmail.com
Sun Sep 25 17:31:26 CEST 2016

On 25/09/2016 7:51 AM, Matti Viljamaa wrote:
> I have created a 2x2 plot using par(mfrow = c(2, 2)).
> I can add x- and ylabels to individual plots, but what I want is to add overall xlabel and ylabel for the entire 2x2 plot.
> How to do this?

First you need to make space using par(oma=...), then use mtext(..., 
outer = TRUE).

Duncan Murdoch

More information about the R-help mailing list