View source: R/gmri_palettes.R
gmri_pal | R Documentation |
Interpolation tool for a gmri color palettes using colorRampPalette(). This is the workhorse for scale_color_gmri() and for scale_fill_gmri().
gmri_pal(palette = "main", reverse = FALSE, ...)
palette |
Character name of palette in gmri_palettes |
reverse |
Boolean indicating whether the palette should be reversed |
... |
Additional arguments to pass to colorRampPalette() |
#You can now get interpolated color ranges using the palettes
gmri_pal("cool")(10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.