geom_recession: NBER Recession Date Geom

View source: R/geom-recession.R

geom_recessionR Documentation

NBER Recession Date Geom

Description

Adds shaded areas to a time series that indicate the periods corresponding to recessions as dated by the National Bureau of Economic Research.

Usage

geom_recession(
  mapping = NULL,
  data = NULL,
  position = "identity",
  na.rm = FALSE,
  hjust = 0,
  size = 10,
  inherit.aes = TRUE,
  nudge_y = 0,
  nudge_x = 0,
  alpha = 0.1,
  fill = "gray90",
  ...
)

kbrevoort/kpbtemplates documentation built on May 31, 2024, 12:29 p.m.