te_color
paletteReturns a function to be used by other functions.
te_pal(palette = "discrete", discrete = TRUE, reverse = FALSE)
palette | character. Name of palette in |
---|---|
discrete | logical. Indicates whether the color palette is discrete or not. |
reverse | logical. Indicates whether the palette should be reversed. |
https://drsimonj.svbtle.com/creating-corporate-colour-palettes-for-ggplot2. https://github.com/hrbrmstr/hrbrthemes/blob/master/R/scales.r
Calls scales::manual_pal()
if discrete = TRUE
or colorRampPalette()
if
discrete = FALSE
.