I plot 5 boxplots (boxplot) in two rows with par(mfrow = c(2,5), oma = c(0,0,2,2))
.
par(mfrow = c(2,5),oma = c(0, 2, 2, 0))
boxplot(x,...)
title (main = "title1", outer = T)
boxplot(y,...)
title (main = "title2", outer = T)#overwrites title 1
how to place the title2 above the 2nd row of boxplots?
You can use
mtext
to plot the title wherever you want.