delfi_palette: DELFI Diagnostics visual identity palette generator

Description Usage Arguments Value Examples

View source: R/colors.R

Description

DELFI Diagnostics visual identity palette generator

Usage

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

Arguments

name

(str) Name of desired palette. Choices currently are: "Diverging", "Categorical"

n

(int) Number of colors returned, up to per-palette max (if n >= max, returns all).

type

(str) One of "continuous" or "discrete". Will interpolate to n colors if continuous.

Value

A vector of colors.

Examples

1
2
3
4
5
delfi_palette("Diverging")
delfi_palette("Categorical", 3)

# If you need more colours than normally found in a palette, you
# can use type="continuous" to interpolate between existing colors

ggraham/delfiVisID documentation built on Jan. 12, 2022, 12:24 a.m.