add_rec_shade: cSM Eco ggplot2 Theme

Description Usage Arguments Value

View source: R/plot_functions.R

Description

This function adds recession bars to ggplot using daily FRED recession indicator data

Usage

1
add_rec_shade(st_date, ed_date, shade_color = "darkgray")

Arguments

st_date

Start date of desired data

ed_date

End date of desired data

shade_color

Color of recession bars

Value

A geom_rect object


davidwig/csm documentation built on Dec. 19, 2021, 9:09 p.m.