scale_linear | R Documentation |
Creates a continuous linear scale. The colour palette (or range) is linearly interpolated
between limits
(or between limits
and between breaks
for piecewise scales).
scale_color_linear(
col,
palette = scales::viridis_pal(),
na_color = "#000000",
limits = NULL,
breaks = NULL,
n_ticks = NULL,
tick_format = format_number,
col_label = "{.col}",
legend = TRUE
)
scale_linear(
col,
range = 0:1,
na_value = 0,
limits = NULL,
breaks = NULL,
col_label = "{.col}",
legend = TRUE
)
col |
< |
palette |
<
A |
na_color |
< |
limits |
< |
breaks |
< If not
Defaults to |
n_ticks |
< |
tick_format |
< |
col_label |
<
|
legend |
< |
range |
< |
na_value |
< |
Other scales:
rescale_center()
,
rescale_diverge()
,
scale_category()
,
scale_identity()
,
scale_log()
,
scale_power()
,
scale_quantile()
,
scale_quantize()
,
scale_symlog()
,
scale_threshold()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.