scale_x_grates_month: month scale

View source: R/scale-month.R

scale_x_grates_monthR Documentation

month scale

Description

ggplot2 scale for a month vector.

Usage

scale_x_grates_month(
  ...,
  breaks = ggplot2::waiver(),
  n.breaks = 6L,
  format = "%Y-%m-%d",
  bounds_format = "%Y-%b",
  sep = "to",
  n
)

Arguments

...

Not currently used.

breaks

A ⁠<grates_month>⁠ 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 if "Date" scales are required.

If NULL then labels are centralised and of the form "lower category bound to upper category bound".

If not NULL then the value is used by format.Date() and can be any input acceptable by that function (defaults to "%Y-%m-%d).

bounds_format

Format to use for grouped date labels. Only used if format is NULL.

sep

⁠[character]⁠

Separator to use for grouped date labels.

n

⁠[integer]⁠

Number of months used for the original grouping.

Value

A scale for use with ggplot2.


grates documentation built on July 9, 2023, 7:09 p.m.