pal_hsl: Get HSL hex color palette (or colors by name)

Description Usage Arguments Value Examples

View source: R/pal_functions.R

Description

Get HSL hex color palette (or colors by name)

Usage

1
pal_hsl(..., with_names = TRUE)

Arguments

...

One or multiple color names as character. If empty, all colors are returned.

with_names

Logical: return palette as named vector?

Value

A named vector of hex color codes.

Examples

1
2
3
pal_hsl("train", "tram", "lightrail")
pal_hsl("train", "tram", "lightrail", with_names = FALSE)
pal_hsl()

webbidevaajat/wspviz documentation built on Nov. 5, 2019, 12:07 p.m.