If you get an error about not enough colours, try a different palette (such as graph) or set discrete = FALSE. If you are plotting discrete colours and need more than 10 colours, then you will have to make your own palette using make_grattan_pal.

scale_colour_grattan(palette = NULL, discrete = FALSE, reverse = FALSE, ...)

scale_fill_grattan(palette = NULL, discrete = FALSE, reverse = FALSE, ...)

Arguments

palette

Character name of palette in grattan_palettes

discrete

Boolean indicating whether colour aesthetic is discrete or not

reverse

Boolean indicating whether the palette should be reversed

...

Additional arguments passed to discrete_scale or scale_color_gradientn, used respectively when discrete is TRUE or FALSE

Functions

  • scale_colour_grattan(): For colour scales

  • scale_fill_grattan(): For fill scales