A ggplot2 alpha scale for complete versus incomplete periods
Source:R/period_completeness.R
scale_alpha_logical.RdA manual alpha scale mapping FALSE/TRUE to two opacity levels, with the
guide hidden. Pairs with period_is_complete() to fade the in-progress
period in bar or column charts, e.g.
ggplot2::aes(alpha = period_is_complete(date, as_of = cutoff)).
