scale_x_grates_period {grates}R Documentation

period scale

Description

ggplot2 scale for an ⁠<grates_period>⁠ vector.

Usage

scale_x_grates_period(
  ...,
  breaks = ggplot2::waiver(),
  n.breaks = 6L,
  format = "%Y-%m-%d",
  n,
  offset
)

Arguments

...

Not currently used.

breaks

A ⁠<grates_period>⁠ vector of the desired breaks.

n.breaks

⁠[integer]⁠

Approximate number of breaks calculated using scales::breaks_pretty (default 6L).

Will only have an effect if breaks = waiver().

format

Format to use for dates.

Value is used by format.Date() and can be any input acceptable by that function.

n

⁠[integer]⁠

Number of days in each period.

offset

⁠[integer]⁠

Number of days used in original grouping for the offset from the Unix Epoch.

Value

A scale for use with ggplot2.


[Package grates version 1.2.1 Index]