Apply a palette to a ggplot colour or fill scale.
Examples
library(ggplot2)
library(trashpanda)
ggplot(mpg, aes(class, fill = class)) +
geom_bar() +
scale_cwb(palette = "eldritch_night", type = "d", aesthetics = "fill")
ggplot(mpg, aes(displ, hwy, colour = hwy)) +
geom_point(size = 3) +
scale_cwb(palette = "mystic_ocean", type = "c", aesthetics = "colour")
