datetime_scale | R Documentation |
Date/time scale constructor
datetime_scale(
aesthetics,
trans,
palette,
breaks = pretty_breaks(),
minor_breaks = waiver(),
labels = waiver(),
date_breaks = waiver(),
date_labels = waiver(),
date_minor_breaks = waiver(),
timezone = NULL,
guide = "legend",
...
)
aesthetics |
The names of the aesthetics that this scale works with. |
trans |
For date/time scales, the name of a date/time transformation or the object itself. Built-in transformations include "hms", "date" and "time". |
palette |
A palette function that when called with a numeric vector with
values between 0 and 1 returns the corresponding output values
(e.g., |
breaks |
One of:
|
minor_breaks |
One of:
|
labels |
One of:
|
date_breaks |
A string giving the distance between breaks like "2
weeks", or "10 years". If both |
date_labels |
A string giving the formatting specification for the
labels. Codes are defined in |
date_minor_breaks |
A string giving the distance between minor breaks
like "2 weeks", or "10 years". If both |
timezone |
The timezone to use for display on the axes. The default
( |
guide |
A function used to create a guide or its name. See
|
... |
Arguments passed on to
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.