Skip to contents

Visually displays all available Benvi palettes in a grid layout, similar to RColorBrewer::display.brewer.all(). Optionally filter by palette type.

Usage

show_palettes(type = "all", n = NULL)

Arguments

type

Character string specifying the palette type to display. One of: "all" (default), "theme", "sequential", "qualitative", "city", or "brand". See list_palettes() for details.

n

Number of colors to display from each palette. If NULL (default), shows all colors in each palette.

Value

Invisibly returns NULL. Called for its side effect of creating a plot.

Examples

# Display all palettes
show_palettes()


# Display only theme palettes
show_palettes("theme")


# Display sequential palettes
show_palettes("sequential")