scale XDate Time
Position scale x for date/time data.
Examples
Parameters
The name of the scale - used as the axis label or the legend title. If null, the default, the name of the scale is taken from the first mapping used for that aesthetic.
A list of data values specifying the positions of ticks, or a dictionary which maps the tick labels to the breaks values.
A list of labels on ticks, or a dictionary which maps the breaks values to the tick labels.
The maximum label length (in characters) before trimming is applied.
Data range for this scale. A pair of values providing limits of the scale. Use null
to refer to default min/max.
A numeric vector of length two giving multiplicative and additive expansion constants. The vector size == 1 => only multiplicative expand (and additive expand by default). Defaults: multiplicative = 0.05, additive = 0.
Missing values will be replaced with this value.
Defines the format for labels on the scale. Also applies to breaks
.
The position of the axis:
"left", "right" or "both" for y-axis;
"top", "bottom" or "both" for x-axis.
Format patterns in the format
parameter can be just a number format (like "d") or a string template where number format is surrounded by curly braces: "{d} cylinders". Note: the "$" must be escaped as "\$". For more info see: formats.html
Examples:
"%d.%m.%y" -> "06.08.19"
"%B %Y" -> "August 2019"
"%a, %e %b %Y %H:%M:%S" -> "Tue, 6 Aug 2019 04:46:35"