Shorthand for scale_*_continuous(trans = "log10") / "sqrt".
scale_x_log10(
name = NULL,
limits = NULL,
breaks = NULL,
labels = NULL,
expand = 0.05
)
scale_y_log10(
name = NULL,
limits = NULL,
breaks = NULL,
labels = NULL,
expand = 0.05
)
scale_x_sqrt(
name = NULL,
limits = NULL,
breaks = NULL,
labels = NULL,
expand = 0.05
)
scale_y_sqrt(
name = NULL,
limits = NULL,
breaks = NULL,
labels = NULL,
expand = 0.05
)
scale_x_reverse(
name = NULL,
limits = NULL,
breaks = NULL,
labels = NULL,
expand = 0.05
)
scale_y_reverse(
name = NULL,
limits = NULL,
breaks = NULL,
labels = NULL,
expand = 0.05
)Axis title (defaults to the mapped expression).
Optional numeric length-2 domain; NULL trains from data.
Explicit tick positions in data units, or NULL for
automatic "nice number" breaks.
Tick labels: a character vector the same length as
breaks, a function applied to the break values (e.g.
function(x) paste0("$", x)), or NULL for automatic formatting.
Fraction of the data span to pad onto each end of the axis
(default 5%). Use 0 for a tight axis.
A ScaleContinuous object to add with +.
d <- data.frame(x = 10^(1:5), y = 1:5)
ggnext(d, aes(x, y)) + geom_point() + scale_x_log10()
#> <ggnext plot>
#> data: 5 x 2
#> aes: x = x, y = y
#> layers: 1
#> coord: cartesian
#> mode: static