Last observation: 2024 (N = 103)
First observation: 1925 (N = 103)
Last data update: 25 jul 2026, 12:36. Last compile: 17 aoû 2026, 22:01
Data - BEA
Last observation: 2024 (N = 103)
First observation: 1925 (N = 103)
Last data update: 25 jul 2026, 12:36. Last compile: 17 aoû 2026, 22:01

FAAt201 |>
year_to_date() |>
filter(LineNumber %in% c(4, 11, 18, 26)) |>
rename(variable = LineDescription) |>
left_join(gdp_adjustment, by = "date") |>
mutate(DataValue = `Real GDP / Real GDP Trend (Log Linear)` * DataValue / GDP) |>
ggplot() + geom_line(aes(x = date, y = DataValue, color = variable)) +
ylab("% of GDP") + xlab("") +
theme_minimal()+
geom_rect(data = nber_recessions |>
filter(Peak > as.Date("1927-01-01")),
aes(xmin = Peak, xmax = Trough, ymin = -Inf, ymax = +Inf),
fill = 'grey', alpha = 0.5) +
scale_x_date(breaks = nber_recessions$Peak,
minor_breaks = "5 years",
labels = date_format("%Y")) +
scale_y_continuous(breaks = 0.01*seq(0, 160, 2),
labels = scales::percent_format(accuracy = 1)) +
theme(legend.position = c(0.25, 0.85),
legend.title = element_blank(),
legend.text = element_text(size = 8),
legend.key.size = unit(0.9, 'lines'))
FAAt201 |>
year_to_date() |>
filter(LineNumber %in% c(36, 67, 68, 74)) |>
rename(variable = LineDescription) |>
left_join(gdp_adjustment, by = "date") |>
mutate(DataValue = `Real GDP / Real GDP Trend (Log Linear)` * DataValue / GDP) |>
ggplot() + geom_line(aes(x = date, y = DataValue, color = variable)) +
ylab("% of GDP") + xlab("") +
theme_minimal()+
geom_rect(data = nber_recessions |>
filter(Peak > as.Date("1927-01-01")),
aes(xmin = Peak, xmax = Trough, ymin = -Inf, ymax = +Inf),
fill = 'grey', alpha = 0.5) +
scale_x_date(breaks = nber_recessions$Peak,
minor_breaks = "5 years",
labels = date_format("%Y")) +
scale_y_continuous(breaks = 0.01*seq(0, 160, 10),
labels = scales::percent_format(accuracy = 1)) +
theme(legend.position = c(0.25, 0.35),
legend.title = element_blank(),
legend.text = element_text(size = 8),
legend.key.size = unit(0.9, 'lines'))