Skip to contents

Creates a visual display of multiple color palettes, useful for comparing palettes or showing all palettes of a certain type.

Usage

show_palettes(palettes = NULL, ncol = 1, cex = 0.8)

Arguments

palettes

Character vector of palette names. If NULL (default), shows all palettes. Can also be a palette type ("sequential", "diverging", "grouped", "category") to show all palettes of that type.

ncol

Number of columns for layout (default 1).

cex

Text size multiplier (default 0.8).

Value

Invisibly returns NULL. The function is called for its side effect of creating a plot.

Examples

if (FALSE) { # \dontrun{
# Show all sequential palettes
show_palettes("sequential")

# Show specific palettes
show_palettes(c("1880_07", "1881_03", "1895_04"))
} # }