View source: R/ggplot2-colors.R
pgl_pals | R Documentation |
Generate a PGL-themed color palette
pgl_pals(what = NULL, who = NULL)
what |
The object the palette was extracted from. It's sufficient to just supply this argument. |
who |
The person associated with the palette. This argument is optional. |
A unary palette generating function that takes the number of colors to return.
library(colorspace)
swatchplot(pgl_pals("blueberry_matcha_boba", "christine")())
swatchplot(pgl_pals("cat_coaster", "xin")())
swatchplot(pgl_pals("cat_coaster", "xin")(15))
swatchplot(pgl_pals("hk_postcard_dull", "may")())
swatchplot(pgl_pals("hk_postcard_sharp", "may")())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.