

Parameters can be set by specifying them as arguments to par in tag value form, or by passing them as a. par (mfrow c (2, 2)) 2-by-2 grid of plots par (oma c (4, 4, 0, 0)) make room (i.e. For strings plotted parallel to the axis the default is to.

In the example below, a 2-by-2 grid is created with mfrow() (as described in Ogle ( 2016)) and the bottom and left outer margin areas are increased to be two “lines” wide to allow for common x- and y-axis labels. par can be used to set or query graphical parameters. If adj is not a finite value (the default), the value of par(las) determines the adjustment. For example, margins that are two “lines” wide on the top and bottom and one “line” wide on the left and right may be set with par(oma=c(2,1,2,1)).Ĭommon axis labels for multiple graphs can be placed in the outer margin area. Two things to consider though: in the second set axes to FALSE, and xlabel and ylabel. The size of the outer margin area is set with oma= in par(), which takes a vector of four values to serve as widths of the four sides of the outer margin area, beginning with the bottom and moving counter-clockwise. The par(newT) tells R to make the second plot without cleaning the first. In most instances (and the default), the width of the outer margin area is 0 on all sides of the figure area such that no outer margin area exists. You can use the par() function in R to create multiple plots at once. Figure 1: Schematic plot that illustrates the plotting area (inside the blue box), the figure area (inside the red box), and the outer margin area (between the dark gray and red boxes).
