tpl_colors: Load TPL brand colors

Description Usage Arguments Value Examples

View source: R/tpl_colors.R

Description

Function that loads TPL's brand colors as a vector of hex codes. Can be used to set colors in plots and charts.

Usage

1
tpl_colors(named = TRUE)

Arguments

named

Boolean that indicates whether vector should be named

Value

A vector of hex codes, which can be accessed by the name of the color if named=T

Examples

1
2
3
colors <- tpl_colors()
colors['darkblue'] #to access the named object
colors[['darkblue']] #to access the hex code directly

heidiwallace/TPLthemeR documentation built on Jan. 21, 2022, 9:21 p.m.