aes_colour_darken {ggblanket}R Documentation

Lighten/darken a colour/fill aesthetic

Description

Lighten/darken a colour/fill aesthetic based on a

Usage

aes_colour_darken(..., amount = 0.1)

aes_colour_lighten(..., amount = 0.1)

aes_fill_darken(..., amount = 0.1)

aes_fill_lighten(..., amount = 0.1)

Arguments

...

Other arguments passed to colorspace::darken()/colorspace::lighten().

amount

Numeric specifying the amount of lightening or darkening.

Value

A ggplot2 aesthetic

Examples

library(ggblanket)
library(ggplot2)
library(palmerpenguins)

set_blanket(
  alpha_recursive = 1,
)

penguins |>
  gg_bar(
    y = species,
    col = island,
    mapping = aes_colour_darken(amount = 0.2),
    width = 0.75,
  )

penguins |>
gg_bar(
  y = species,
  col = island,
  mapping = aes(!!!aes_colour_darken(amount = 0.2)),
  width = 0.75,
)


[Package ggblanket version 10.0.0 Index]