Return function to interpolate a Globe and Mail color palette

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

tgam_pal()(3)
#> [1] "#852E57" "#D56161" "#CCCCCC"
tgam_pal(palette = 'alternate')(3)
#> [1] "#2D5783" "#5FBF9B" "#D8CFC3"