gmri_pal: GMRI Color Palettes

View source: R/gmri_palettes.R

gmri_palR Documentation

GMRI Color Palettes

Description

Interpolation tool for a gmri color palettes using colorRampPalette(). This is the workhorse for scale_color_gmri() and for scale_fill_gmri().

Usage

gmri_pal(palette = "main", reverse = FALSE, ...)

Arguments

palette

Character name of palette in gmri_palettes

reverse

Boolean indicating whether the palette should be reversed

...

Additional arguments to pass to colorRampPalette()

Examples

#You can now get interpolated color ranges using the palettes
gmri_pal("cool")(10)


gulfofmaine/gmRi documentation built on Jan. 26, 2025, 5:12 a.m.