powered by
The Observable 10 palette.
pal_observable(palette = c("observable10"), alpha = 1)
Palette type. Currently there is one available option: "observable10" (10-color palette).
"observable10"
Transparency level, a real number in (0, 1]. See alpha in grDevices::rgb() for details.
alpha
grDevices::rgb()
Nan Xiao | me@nanx.me | https://nanx.me
Pettiross J (2023). "Crafting data colors and staying on brand." Observable blog. https://observablehq.com/blog/crafting-data-colors
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