Skip to contents

Generates a palette within across hues

Usage

sc_across(palette = "ROYGTBVPGy", light = 3, sat = "", return = NULL)

Arguments

palette

the first letter of each hue to include

light

the lightness value to hold constant (1:7)

sat

the saturation value to hold constant ("bright", "muted", "dull", "")

return

defaults to returning hex codes but can also return a table or plot of the generated palette

See also

Other palettes: sc_within()

Examples

sc_across(palette = "BO")
#> [1] "#4479E4" "#E4AF44"
sc_across(palette = "BO", sat = "bright", return = "table")
#>      color_name     hex
#> 1   brightblue3 #2970FF
#> 2 brightorange3 #FFB829
sc_across(palette = "BO", sat = "bright", return = "plot")

sc_across(palette = "RBTVPGy", light = 4, return = "plot")