View source: R/gg_color_swatches.R
palette_plot | R Documentation |
Visualize a color palette as swatches of colors, possibly with labels printed on top
palette_plot(colors, label_size = 6, label_family = "",
color_labels = TRUE, ...)
colors |
Vector of color names or hex codes. |
label_size |
Size of the color labels to be printed. |
label_family |
Font family of the labels |
color_labels |
Individual bool or vector of bools indicating for which colors the color names should be printed on top of the color swatch. |
... |
Other parameters to be handed off to gg_color_swatches. |
palette_plot(palette_OkabeIto)
palette_plot(c("red", "green", "yellow", "magenta"), color_labels = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.