| scale_quantize | R Documentation |
Creates a discrete quantize scale, with n_breaks linearly spaced threshold breaks between
limits. This scale can be thought of as a restricted special case of scale_threshold(),
or a discrete scale_linear().
scale_color_quantize(
col,
palette = scales::viridis_pal(),
na_color = "#000000",
limits = NULL,
n_breaks = 6,
tick_format = format_number,
col_label = "{.col}",
legend = TRUE
)
scale_quantize(
col,
range = 0:1,
na_value = 0,
limits = NULL,
n_breaks = 6,
col_label = "{.col}",
legend = TRUE
)
col |
< |
palette |
<
A |
na_color |
< |
limits |
< |
n_breaks |
< |
tick_format |
< |
col_label |
<
|
legend |
< |
range |
< |
na_value |
< |
Other scales:
rescale_center(),
rescale_diverge(),
scale_category(),
scale_identity(),
scale_linear(),
scale_log(),
scale_power(),
scale_quantile(),
scale_symlog(),
scale_threshold()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.