plotOnSide adds plot areas on the specified sides of the original figures.
plotOnSide(mat, side = 1:2, dim = NULL, quiet = FALSE, ...)
mat | a matrix object specifying the location of the next N figures on the output device, see |
---|---|
side | the number of the sides on which plot areas must be added. |
dim | optional. If provided, then a matrix is created based and this argument specifies its dimensions. |
quiet | if TRUE, no warning message will be displayed. |
... | additional arguments to be passed to |
This function eases the creation of plots that include multiple panels that shares information such as axis labels. Instead of
repeating or deleting axis labels, plotOnSide
add plot areas on the specified sides of the original figures.
It is based on graphics::layout()
and it is no more than a tuned version of it.