Learn R Programming

ggthemr (version 1.1.0)

darken_gradient: Make ggthemr gradient darker

Description

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

Usage

darken_gradient(amount)

Arguments

amount

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

Examples

Run this code
# NOT RUN {
ggthemr('dust')
darken_gradient(0.2)
# }

Run the code above in your browser using DataLab