set_swatch: Change the swatch colours in a ggthemr theme

set_swatchR Documentation

Change the swatch colours in a ggthemr theme

Description

Edit an existing theme's swatch. The swatch contains the main colours used in a ggplot outside of the colours for the title, axes text, axes lines, gridlines, background etc.

The first colour of the swatch is separate from the others. It is used in special cases e.g. the outline colour for geom_boxplot(). This colour should have good contrast with at least the second colour of the swatch.

Usage

set_swatch(swatch_colours)

Arguments

swatch_colours

new colours to use in themr swatch


cttobin/ggthemr documentation built on April 19, 2022, 3:31 a.m.