Returns a function to be used by other functions.

te_pal(palette = "discrete", discrete = TRUE, reverse = FALSE)

Arguments

palette

character. Name of palette in te_palettes list.

discrete

logical. Indicates whether the color palette is discrete or not.

reverse

logical. Indicates whether the palette should be reversed.

Source

https://drsimonj.svbtle.com/creating-corporate-colour-palettes-for-ggplot2. https://github.com/hrbrmstr/hrbrthemes/blob/master/R/scales.r

Details

Calls scales::manual_pal() if discrete = TRUE or colorRampPalette() if discrete = FALSE.