View source: R/message_senders.R
set_scale | R Documentation |
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,
breaks = NULL,
zero = NULL,
one = NULL,
direction = NULL,
mult = NULL,
default = NULL,
unfreeze = NULL
)
x |
A |
id |
A string id of the plot. See id |
scale |
A string identifying scale. Can be: "x", "y", "area", or "size". |
min |
Scale minimum (continuous scales only) |
max |
Scale maximum (continuous scales only) |
breaks |
A vector of discrete breaks (discrete scale only) |
zero |
The proportion of codomain to which the smallest/first value gets mapped to |
one |
The proportion of codomain to which largest/last value gets mapped to |
direction |
Scale direction. Can be |
mult |
Scale multiplier |
default |
Whether to set other arguments as scale defaults |
unfreeze |
Whether to unfreeze frozen parameters (such as the lower y-axis limit in barplot) |
The scene or schema back
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.