te_pal: Return function to interpolate a 'te_color' palette

Description Usage Arguments Details Source

View source: R/scale_te.R

Description

Returns a function to be used by other functions.

Usage

1
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.

Details

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

Source

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


tonyelhabr/teplot documentation built on May 26, 2019, 5:33 a.m.