[R] How to add overall xlabel and ylabel?

Ben Tupper btupper at bigelow.org
Sun Sep 25 15:02:34 CEST 2016


Hi,

Here's a place to start...

https://www.r-bloggers.com/two-tips-adding-title-for-graph-with-multiple-plots-add-significance-asterix-onto-a-boxplot/

You might also want to checkout the text() function and the xpd argument to par.

Ben

> On Sep 25, 2016, at 7:51 AM, Matti Viljamaa <mviljamaa at kapsi.fi> 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?
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.



Ben Tupper
Bigelow Laboratory for Ocean Sciences
60 Bigelow Drive, P.O. Box 380
East Boothbay, Maine 04544
http://www.bigelow.org



More information about the R-help mailing list