Learn R Programming

teal.modules.general (version 0.6.0)

.scale_x_mosaic: Determining scales for mosaics

Description

Determining scales for mosaics

Usage

.scale_x_mosaic(
  breaks = unique,
  minor_breaks = NULL,
  labels = unique,
  na.value = NA_real_,
  position = "bottom",
  ...
)

Arguments

breaks, labels, minor_breaks

One of:

  • NULL for no breaks / labels.

  • ggplot2::waiver() for the default breaks / labels computed by the scale.

  • A numeric / character vector giving the positions of the breaks / labels.

  • A function. See ggplot2::scale_x_continuous() for more details.

na.value

The value to be used for NA values.

position

For position scales, The position of the axis. left or right for y axes, top or bottom for x axes.

...

other arguments passed to continuous_scale().