defaultAxes: Add an Axis to a Plot with Default Options

Description Usage Arguments

View source: R/utility_functions.R

Description

An extension of the base R function axis with default parameters for a subset of the arguments.

Usage

1
2
3
4
5
6
7
8
9
defaultAxes(
  at,
  labels = TRUE,
  side = 1,
  tick = FALSE,
  line = -1.5,
  cex.axis = 1.25,
  ...
)

Arguments

at

The positions for the tick points.

labels

Typically a set of labels of matching length to at to be placed at the tick points.

side

An integer specifying which side of the plot the axis is to be drawn on. As per base R, 1 = below, 2 = left, 3 = above, and 4 = right. Defaults to below.

tick

Logical; if TRUE adds tick marks. Default is FALSE.

line

The number of lines into the margin at which the axis line will be drawn, if not NA.

cex.axis

The size of the text for the labels placed at the tick points.

...

Additional arguments passed on to the axis function.


rettopnivek/utilityf documentation built on March 1, 2021, 7:05 p.m.