make_grattan_pal_discrete | R Documentation |
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.
make_grattan_pal_discrete(n)
n |
how many colours to return |
grattan_palettes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.