jColors: A list of nice color palettes.

View source: R/jColors.R

jColorsR Documentation

A list of nice color palettes.

Description

Returns a list of different color palettes. Each palette is a data.frame. trove Palette found at http://colrd.com/palette/19308/ redToGray Palette found at http://colrd.com/palette/21894/

Usage

jColors(palette = NULL, colors = NULL, preview = FALSE)

Arguments

palette

A palette name. Options include: "basic", "extended", "bright", "stan", "clean", "set3", "trove", "redToGray".

colors

Which colors you want from the palette?

preview

Preview the colors in the palette?

Examples

# Preview every color palette
jColors(preview = TRUE)

# Preview a single color palette
jColors(palette = "basic", preview = TRUE)

# Preview a few colors from a single color palette
jColors(palette = "basic", colors = c("red", "blue"), preview = TRUE)

# Get the colors from a whole palette as a vector
jColors(palette = "basic")

# Get only select colors from a palette as a vector
jColors(palette = "basic", colors = c("red", "blue"))

jhelvy/jhelvyr documentation built on May 17, 2023, 8:46 p.m.