Symmetric x continuous scale
scale_x_symmetric(
...,
data = NULL,
x = NULL,
symmetric = TRUE,
breaks = NULL,
breaks_n = 6,
expand = NULL,
expand_limits = NULL,
labels = NULL,
position = "bottom",
sec_axis = ggplot2::waiver(),
transform = "identity"
)A ggplot2 continuous x scale.
Provided to force user argument naming etc.
A data frame or tibble.
An unquoted variable.
TRUE or FALSE of whether a symmetric scale.
A scales::breaks_* function (e.g. scales::breaks_*()), or a vector of breaks.
If breaks = NULL, the desired number of breaks.
Padding to the limits with the ggplot2::expansion() function, or a vector of length 2 (e.g. c(0, 0)).
Any values that the limits should encompass (e.g. 0).
A function that takes the breaks as inputs (e.g. \(x) stringr::str_to_sentence(x) or scales::label_*()), or a vector of labels.
The position of the axis (i.e. "left", "right", "bottom" or "top").
A secondary axis created with ggplot2::sec_axis() or ggplot2::dup_axis().
A transformation object (e.g. scales::transform_log10()) or character string of this minus the transform_ prefix (e.g. "log10").