set_swatch: Change the swatch colours in a ggthemr theme

Description Usage Arguments

View source: R/set_swatch.R

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

1
set_swatch(swatch_colours)

Arguments

swatch_colours

new colours to use in themr swatch


cttobin/ggthemr documentation built on April 18, 2018, 11:36 p.m.