washi_pal_setup {washi}R Documentation

Setup a color palette

Description

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")

washi_pal_setup("green_gradient", 12)

[Package washi version 0.2.0 Index]