Skip to contents

Choose desired number of colors and whether the colors are reversed.

Usage

washi_pal_setup(palette = "standard", n, reverse = FALSE)

Arguments

palette

Character name of palette in washi_pal. See names(washi_pal) for a list of available palettes.

n

Number of colors in palette.

reverse

Boolean indicating whether the palette should be reversed. Default is FALSE.

Value

A vector of color hex codes.

See also

Other color palette functions: washi_pal_view(), washi_pal

Examples

washi_pal_setup("color_blind")
#> [1] "#03634A" "#FCB040" "#7AB7C6" "#700004" "#7C7979" "#D3CF9D"

washi_pal_setup("green_gradient", 12)
#>  [1] "#023B2C" "#124738" "#235445" "#346153" "#456D60" "#557A6D" "#67877A"
#>  [8] "#789487" "#89A094" "#9AADA2" "#ABBAAF" "#BCC7BC"