This function sets the values of a scale within one plot
inside a plotscaper
scene or schema.
set_scale(
x,
id = NULL,
scale = NULL,
min = NULL,
max = NULL,
transformation = NULL,
breaks = NULL,
zero = NULL,
one = NULL,
direction = NULL,
mult = NULL,
default = NULL,
unfreeze = NULL
)
The scene or schema back
A plotscaper
scene or schema
A string id of the plot. See id
A string identifying scale. Can be: "x", "y", "area", or "size".
Scale minimum (continuous scales only)
Scale maximum (continuous scales only)
A transformation to apply ("log10" or "sqrt", continuous only)
A vector of discrete breaks (discrete scale only)
The proportion of codomain to which the smallest/first value gets mapped to
The proportion of codomain to which largest/last value gets mapped to
Scale direction. Can be 1
or -1
Scale multiplier
Whether to set other arguments as scale defaults
Whether to unfreeze frozen parameters (such as the lower y-axis limit in barplot)