Skip to contents

Add opacity to colors (stolen from the rethinking package)

Usage

col.alpha(acol, alpha = 0.5)

shade(
  object,
  lim,
  label = NULL,
  col = col.alpha("black", 0.15),
  border = NA,
  ...
)

Arguments

acol

Color name, hex code, or integer.

alpha

Opacity level between 0 and 1.