croix_palette: The croix palette generator

Description Usage Arguments Value Examples

View source: R/classes_methods.R

Description

A collection of color palettes from LaCroix, movies and whatever else that's colorful and interesting.

Usage

1
croix_palette(name, n = NULL, type = c("discrete", "continuous"))

Arguments

name

Name of desired palette. To see list of available palettes, use names(croix_palettes), or use croix_all() to generate a plot of all color schemes.

n

Number of colors desired.

type

How do you want the colors displayed? Current options are discrete or continuous. discrete will generate specific colors in the desired palette. continous will generate a gradient between the specified colors desired.

Value

A vector of colours.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Return vector
crPal <- croix_palette("croix_pure")
crPal

# Visualize palette
crPal <- croix_palette("mov_the_shining")
plot(crPal)

# Get summary statistics of palette
crPal <- croix_palette("mov_akira")
summary(crPal)

# Get a gradient of palette
crPal <- croix_palette("croix_coconut", n = 50, type = "continuous")
plot(crPal)

btmonier/croix documentation built on May 25, 2019, 4:01 a.m.