Sage hue palette (discrete)

sage_hue_pal(level = "500", direction = 1)

Arguments

level

Color intensity. One of "200", "300", "400", "500", "600", "700", "800".

direction

If -1, reverses the default order of the palette

Value

A function that gives the hex colors for the requested number of values

Examples

sage_hue_pal()(5)
#> [1] "#5A478F" "#F5B33C" "#24AB9F" "#E566A1" "#6DB56D"
sage_hue_pal(direction = -1)(5)
#> [1] "#6DB56D" "#E566A1" "#24AB9F" "#F5B33C" "#5A478F"
sage_hue_pal(level = "800")(5)
#> [1] "#251454" "#BD7900" "#05635B" "#990E4F" "#2C692C"