View source: R/grattan_scales.R
scale_colour_grattan | R Documentation |
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, ...)
palette |
Character name of palette in |
discrete |
Boolean indicating whether colour aesthetic is discrete or not |
reverse |
Boolean indicating whether the palette should be reversed |
... |
Additional arguments passed to |
scale_colour_grattan()
: For colour scales
scale_fill_grattan()
: For fill scales
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.