View source: R/geom-recession.R
geom_recession | R Documentation |
Adds shaded areas to a time series that indicate the periods corresponding to recessions as dated by the National Bureau of Economic Research.
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",
...
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.