covfefe_palette: Use 'covfefe_color_palette' to construct palettes of desired...

Description Usage Arguments Value Examples

View source: R/colours.R

Description

Use covfefe_color_palette to construct palettes of desired length.

Covfefe coachella palette generator

Usage

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

Arguments

n

Number of colours desired. Unfortunately most palettes now only have 4 or 5 colours. But hopefully we'll add more palettes soon. If omitted, uses all colours.

type

Either "continuous" or "discrete". Use continuous if you want to automatically interpolate between colours.

number

ID of desired palette (1 to 3)

Value

A vector of colours.

Examples

1
2
3
4
5
6
7
covfefe_color_palette(2, 8)

# If you need more colours than normally found in a palette, you
# can use a continuous palette to interpolate between existing
# colours
pal <- covfefe_palette(1, number = 2, type = "continuous")
image(volcano, col = pal)

rptashkin/covfefe documentation built on Aug. 6, 2020, 12:15 a.m.