Learn R Programming

ggsci (version 3.2.0)

pal_observable: 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

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

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

Run the code above in your browser using DataLab