sc_within {simplecolors} | R Documentation |
Generates a palette within 1 hue
Description
Generates a palette within 1 hue
Usage
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)
Arguments
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 |
See Also
Other palettes:
sc_across()
Examples
sc_within("violet", 1:3)
sc_within("violet", 1:5, "bright" , return = "table")
sc_within("violet", 2:4, c("bright", "muted"), return = "plot")
[Package simplecolors version 0.1.2 Index]