Base class for scales. A scale owns one positional aesthetic, learns its domain from data ("training"), and maps data values onto [0, 1].

Scale(aesthetic = character(0), name = NULL, breaks = NULL, labels = NULL)

Arguments

aesthetic

Which aesthetic this scale governs ("x" or "y").

name

Axis title; NULL means "use the mapped expression's label".

breaks

Explicit tick positions, or NULL for automatic breaks.

labels

Explicit tick labels (same length as breaks), a function applied to the break values, or NULL for automatic formatting.

Value

An S7 object of class Scale, the base class for scales.