Learn R Programming

evanverse (version 0.4.0)

list_palettes: list_palettes(): List All Color Palettes from RDS

Description

Load and list all available color palettes compiled into an RDS file.

Usage

list_palettes(
  palette_rds = system.file("extdata", "palettes.rds", package = "evanverse"),
  type = c("sequential", "diverging", "qualitative"),
  sort = TRUE,
  verbose = TRUE
)

Value

A data.frame with columns: name, type, n_color, colors.

Arguments

palette_rds

Path to the RDS file. Default: "inst/extdata/palettes.rds".

type

Palette type(s) to filter: "sequential", "diverging", "qualitative". Default: all.

sort

Whether to sort by type, n_color, name. Default: TRUE.

verbose

Whether to print listing details to console. Default: TRUE.

Examples

Run this code
list_palettes()
list_palettes(type = "qualitative")
list_palettes(type = c("sequential", "diverging"))

Run the code above in your browser using DataLab