
Last chance! 50% off unlimited learning
Sale ends in
This function plots a list of colours
plot_palette(fill, colour = "black", id = NA, limit = 12, ...)
Plot with fill
colours and colour
counter-colours
if provided.
Vector. List of colours for fills.
Vector. List of colours for colours.
Vector. ID for each color.
Integer. Show only first n values.
Additional parameters.
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))
Run the code above in your browser using DataLab