View source: R/create_palfun.R
create_palfun | R Documentation |
Create a palette function from the implemented color palettes (or a list of custom palettes).
create_palfun( palette = "main", reverse = FALSE, customPalettes = NULL, shade = 0.5, ... )
palette |
Name of the color palette (character). Use |
reverse |
Use the selected palette in original or reversed order. |
customPalettes |
If desired, a named list of custom palettes with the same structure than |
shade |
Numeric vector in [0,1] that defines the brightness of the palettes. Values higher then 0.5 lead to brighter colors than the original shade, values lower than 0.5 lead to darker colors. |
... |
Additional arguments for |
A color palette function that returns n
colors from the selected palette.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.