make_grattan_pal_discrete: Create a grattan colour palette

View source: R/grattan_pal.R

make_grattan_pal_discreteR Documentation

Create a grattan colour palette

Description

This function takes a the grattan graph colour palette and returns a vector of colours equal to n. It is used in scale_colour_grattan and scale_fill_grattan to make the discrete colour scale as the order of colours is specific in the grattan branding guides and so using an interpolated scale does not work.

Usage

make_grattan_pal_discrete(n)

Arguments

n

how many colours to return

See Also

grattan_palettes


grattan/grattantheme documentation built on June 28, 2023, 1:50 p.m.