Sets the margins for the current graph’s graphic panel.
This function is for use with the deprecated PQG graphics. For similar functionality, use
margin(l, r, t, b)¶
- l (scalar) – the left margin in inches.
- r (scalar) – the right margin in inches.
- t (scalar) – the top margin in inches.
- b (scalar) – the bottom margin in inches.
By default, the dimensions of the graph are the same as the graphic panel dimensions. With this function the graph dimensions may be decreased. The result will be a smaller plot area surrounded by the specified margin. This procedure takes into consideration the axes labels and numbers for correct placement.
All input inch values for this procedure are based on a full size window of 9x6.855 inches. If this procedure is used with a graphic panel, the values will be scaled to “window inches” automatically.
If the axes must be placed an exact distance from the edge of the page,
axmargin() should be used.