Learn R Programming

grates (version 1.4.3)

scale_x_grates_int_period: 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
)

Value

A scale for use with ggplot2.

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.