View source: R/build_palettes.R
sc_within | R Documentation |
Generates a palette within 1 hue
sc_within(hue, light = c(2:5), sat = "", return = NULL)
sc_red(light = 2:5, sat = "", return = NULL)
sc_orange(light = 2:5, sat = "", return = NULL)
sc_yellow(light = 2:5, sat = "", return = NULL)
sc_green(light = 2:5, sat = "", return = NULL)
sc_teal(light = 2:5, sat = "", return = NULL)
sc_blue(light = 2:5, sat = "", return = NULL)
sc_violet(light = 2:5, sat = "", return = NULL)
sc_pink(light = 2:5, sat = "", return = NULL)
sc_grey(light = 2:5, sat = "", return = NULL)
hue |
ex: "red", "blue", "violet" |
light |
the lightness of the color, ex: 1:5 |
sat |
the saturation of the color, ex: "bright", "muted", "dull" or "" (base) |
return |
defaults to returning hex codes but can also return a table or plot of the generated palette |
Other palettes:
sc_across()
sc_within("violet", 1:3)
sc_within("violet", 1:5, "bright" , return = "table")
sc_within("violet", 2:4, c("bright", "muted"), return = "plot")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.