mar: Function mar

marR Documentation

Function mar

Description

Returns margins of plots given numeric vectors to add and/or multiply, and/or a set of labels for each axis.

Usage

mar(
  mar = c(5.1, 4.1, 4.1, 2.1),
  mar1 = c(1, 1, 1, 1),
  mar0 = c(0, 0, 0, 0),
  labels1 = NULL,
  labels2 = NULL,
  labels3 = NULL,
  labels4 = NULL,
  labelFactor = 3,
  set = T
)

Arguments

mar

Numeric vector containing default margins. Defaults to c(5.1, 4.1, 4.1, 2.1).

mar1

Numeric vector to be multiplied with mar. Defaults to c(1,1,1,1).

mar0

Numeric vector to be added to the product of mar and mar1. Defaults to c(0,0,0,0).

labels1

Character vector containing labels for axis 1 (bottom).

labels2

Character vector containing labels for axis 2 (left).

labels3

Character vector containing labels for axis 3 (up).

labels4

Character vector containing labels for axis 4 (right).

set

Logical value specifying whether to set the margins after determining them. Defaults to T

Details

Returns margins of plots given numeric vectors to add and/or multiply, and/or a set of labels for each axis.

Examples

mar();

AndreasFischer1985/quantqual documentation built on June 20, 2022, 4:55 p.m.