Learn R Programming

ggthemr (version 1.0.2)

darken_swatch: Make ggthemr swatch darker

Description

Update a ggthemr swatch so that colours are darker by some specified amount.

Usage

darken_swatch(amount)

Arguments

amount
value between 0 and 1 indicating by how much the colours should be darker/lighter.

Examples

Run this code
ggthemr('dust')
darken_swatch(0.2)

Run the code above in your browser using DataLab