ScaleContinuous: linear continuous positional scale

ScaleContinuous(
  aesthetic = "x",
  limits = NULL,
  name = NULL,
  breaks = NULL,
  labels = NULL,
  trans = "identity",
  expand = 0.05
)

Arguments

aesthetic

"x" or "y".

limits

Optional numeric length-2 vector fixing the domain; NULL (default) trains the domain from the data.

name

Optional axis title.

breaks

Explicit tick positions in data units, or NULL for automatic breaks.

labels

Tick labels: a character vector, a function applied to the break values, or NULL for automatic formatting.

trans

Axis transform: "identity", "log10", "sqrt", or "reverse".

expand

Fraction of the data span padded onto each end of the axis.

The domain property (the trained data range) is filled in during the plot build, not at construction.

Value

An S7 object of class ScaleContinuous; usually built by scale_x_continuous() rather than called directly.