pal_observable: Observable 10 color palette

View source: R/discrete-observable.R

pal_observableR Documentation

Observable 10 color palette

Description

The Observable 10 palette.

Usage

pal_observable(palette = c("observable10"), alpha = 1)

Arguments

palette

Palette type. Currently there is one available option: "observable10" (10-color palette).

alpha

Transparency level, a real number in (0, 1]. See alpha in grDevices::rgb() for details.

Author(s)

Nan Xiao | me@nanx.me | https://nanx.me

References

Pettiross J (2023). "Crafting data colors and staying on brand." Observable blog. https://observablehq.com/blog/crafting-data-colors

Examples

library("scales")
show_col(pal_observable("observable10")(10))
show_col(pal_observable("observable10", alpha = 0.6)(10))

ggsci documentation built on June 22, 2024, 10:29 a.m.