wolak_palette: Create wolakR package palette

View source: R/colors.R

wolak_paletteR Documentation

Create wolakR package palette

Description

Sets up the R object of class palette that contains one of the pre-specified color palettes.

Usage

wolak_palette(name = "aucfriend", n, type = c("discrete", "continuous"))

Arguments

name

Character specifying name of palette to use. See wolak_palettes for list of choices.

n

Integer number of colors to return.

type

Character indicating either “discrete” for colors already listed in the paletter or “continuous” to interpolate between colors.

Details

Function is based off the wesanderson::wes_palette function.

Value

A vector of colors of the class “palette” with a palette name.

Author(s)

matthewwolak@gmail.com

Examples

clr <- wolak_palette("aucfriend")
## Not run: 
  # check:
    colorblindcheck::palette_check(clr, plot = TRUE)

## End(Not run)

matthewwolak/wolakR documentation built on May 10, 2023, 1:27 p.m.