higher_ex_pal: Look up a Higher Expectations color palette by name

View source: R/higher_ex_pal.R

higher_ex_palR Documentation

Look up a Higher Expectations color palette by name

Description

Look up a Higher Expectations color palette by name

Usage

higher_ex_pal(palette = "main", reverse = FALSE, n.colors = NULL, ...)

Arguments

palette

the name of the palette, defaults to "main"

reverse

should the palette's order be reversed, defaults to FALSE

n.colors

choose this to limit the number of colors in the palette, defaults to NULL for all of the palette's colors

...

further arguments to pass to 'grDevices::colorRampPalette'

Value

a color palette object for use in, e.g., ggplot The available palettes are

main

Five colors from the branding document

blues

Three shades of blue, light to dark

econ

Two shades of orange

logo

Gray, Gold, and White

race

Four colors for Racine's empirical census races

inverse

The reverse of 'logo'

tableau

The first four default colors from Tableau

navy gradient

Navy, the intermediate green, and Gold

bright gradient

Bright Blue, the intermediate green, and Gold

medium gradient

Medium Blue, the intermediate green, and Gold

Examples

higher_ex_pal("blues")

higherX4Racine/hiRx documentation built on Nov. 18, 2024, 10:20 a.m.