Description Usage Arguments Format Details
Functions for building and accessing Matt's favourite colours and palettes for use in ggplot visualizations.
1 2 3 4 5 6 7 8 9 10 11 | scale_color_matt(palette = "rainbow", discrete = TRUE, reverse = FALSE, ...)
scale_fill_matt(palette = "rainbow", discrete = TRUE, reverse = FALSE, ...)
matts_cols(...)
matts_pals(palette = "rainbow", reverse = FALSE, ...)
matts_colours
matts_palettes
|
palette |
Name of palette. |
discrete |
Logical. Is the colour palette for a discrete mapping? |
reverse |
Logical. Should the colours/palette be reverse? |
... |
Additional arguments passed on to relevant function. |
An object of class character
of length 3.
Here is a breakdown of the important functions and what they do:
scale_color_matt
a ggplot-type function for providing colours for coloring a mapping.
scale_fill_matt
a ggplot-type function for providing colours for filling a mapping.
matts_colours
is a character vector of my favourite colours.
matts_palettes
is a list of curated palette sets.
matts_cols
is a function for access colours in matts_colours
by name (hex value is returned).
matts_pal
returns a function to interpolate a colour palette from matts_palettes
.
See matts_palettes()
for a list of the available palettes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.