smooth_cols | R Documentation |
Read in continuous values between xmin and xmax and return colours associated with these values, taken from a smoothly varying scale.
smooth_cols(
x,
xmin = min(x, na.rm = T),
xmax = max(x, na.rm = T),
n_levels = 1000,
raw_cols = col_tim()
)
x |
values from which to obtain colours. |
xmin, xmax |
minimum and maximum values of x. |
n_levels |
number of colours in palette. |
raw_cols |
colours that make up the palette. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.