scale_colour_grattan: Scale constructor for grattan colours

View source: R/grattan_scales.R

scale_colour_grattanR Documentation

Scale constructor for grattan colours

Description

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.

Usage

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


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