scale_x_grates_int_period: Integer-period scale (Experimental)

View source: R/int_period-scale.R

scale_x_grates_int_periodR Documentation

Integer-period scale (Experimental)

Description

ggplot2 scale for an integer-period vector.

Usage

scale_x_grates_int_period(
  ...,
  breaks = ggplot2::waiver(),
  n.breaks = 6L,
  centre = FALSE,
  n
)

Arguments

...

Not currently used.

breaks

A ⁠<grates_int_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().

centre

Only applicable to an int_period object with n > 1.

If FALSE labels are place at the edge of the bounds.

If TRUE then labels are centralised and of the form ⁠[lower, upper]⁠

n

⁠[integer]⁠

Number used for the original grouping.

Value

A scale for use with ggplot2.


grates documentation built on April 3, 2025, 10:49 p.m.