EJ_pal: Return function to interpolate a EJ colour palette

Description Usage Arguments Value Author(s) Examples

View source: R/EJ_pal.R

Description

Return function to interpolate a EJ colour palette

Usage

1
EJ_pal(palette = "primary", reverse = FALSE, ...)

Arguments

palette

Character name of palette in EJ_palettes

reverse

Boolean indicating whether the palette should be reversed

...

Additional arguments to pass to colorRampPalette()

Value

vector() of selected colours based on palette argument

Author(s)

Eugene Joh, MPH ejoh@bu.edu

Examples

1
EJ_pal("accent")(5)

eugejoh/RpalEJ documentation built on May 17, 2019, 7:05 p.m.