scale_fill_continuous_tpl: ggplots with TPL brand colors

Description Usage Arguments Value

View source: R/tpl_colors.R

Description

Function that sets custom TPL brand color in continuously-valued plots. Other than customized parameters, it works just like the built-in ggplot layer scale_fill_continuous()

Usage

1
scale_fill_continuous_tpl(color, reverse = F, ...)

Arguments

color

String that specifies which TPL brand color to use for gradient color scheme. Must be one of 'darkblue', 'teal', 'green', 'yellow', 'orange'

reverse

Boolean that assigns the highest values to the lightest hue when set to TRUE (default=FALSE)

...

Additional arguments passed to scale_fill_continuous()

Value

A ggplot layer that fills continuous scales with brand colors


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