tgam_pal: Return function to interpolate a Globe and Mail color palette

Description Usage Arguments Value Examples

View source: R/theme_tgam.R

Description

Return function to interpolate a Globe and Mail color palette

Usage

1
tgam_pal(palette = "main", reverse = FALSE, ...)

Arguments

palette

Character name of palette in tgam_palettes. Currently, one of 'main' or 'alternate'.

reverse

Boolean indicating whether the palette should be reversed

...

Additional arguments to pass to colorRampPalette()

Value

A character vector of interpolated colour values

Examples

1
2
tgam_pal()(3)
tgam_pal(palette = 'alternate')(3)

globeandmail/tgamtheme documentation built on Feb. 13, 2021, 9:16 a.m.