Learn R Programming

lares (version 4.8.4)

plot_palette: Plot Palette Colours

Description

This function plots a list of colours

Usage

plot_palette(fill, colour = "black", id = NA)

Arguments

fill

Vector. List of colours for fills

colour

Vector. List of colours for colours

id

Vector. ID for each color

See Also

Other Auxiliary: gg_colour_customs(), gg_fill_customs(), gg_text_customs(), lares_pal()

Examples

Run this code
# NOT RUN {
nice_palette <- names(lares_pal()$palette)[1:15]
nice_palette_ctr <- as.vector(lares_pal()$palette)[1:15]
plot_palette(nice_palette, nice_palette_ctr)
# }

Run the code above in your browser using DataLab