View source: R/colour_palettes.R
plot_palette | R Documentation |
This function plots a list of colours
plot_palette(fill, colour = "black", id = NA, limit = 12, ...)
fill |
Vector. List of colours for fills. |
colour |
Vector. List of colours for colours. |
id |
Vector. ID for each color. |
limit |
Integer. Show only first n values. |
... |
Additional parameters. |
Plot with fill
colours and colour
counter-colours
if provided.
Other Themes:
gg_fill_customs()
,
lares_pal()
,
theme_lares()
# Simply pass a vector
pal <- lares_pal("simple")
plot_palette(pal)
# Or fill + color named vector
pal <- lares_pal("pal")
plot_palette(fill = names(pal), colour = as.vector(pal))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.