Case study
Economic and market dashboards built in R and Quarto, with shared data preparation and charting tools, plus interactive examples on this site.
I built sixteen economic and market dashboards in R and Quarto, covering inflation, jobs, rates, housing, energy, GDP, and markets. This case study describes that dashboard work and the shared tooling behind it.
The original documents paired explanations with R code that fetched and charted the series. The interactive examples on this Next.js site use a different publishing workflow: a separate data-refresh script produces snapshots, and the site build renders those saved observations. The charts show their dates so readers can judge freshness.
Public economic data is free, deep, and hard to use raw. The series that matter are scattered across FRED, BLS, BEA, and market feeds under opaque symbol codes, and the interesting question is usually a transformation (year over year, a rolling average, a state-by-state comparison) rather than the raw level.
A manually updated chart is easy to leave behind when new data arrives. The question: how do I retrieve observations repeatably, apply consistent transformations, and show readers which period they are seeing?
FRED public data on inflation, jobs, rates, housing, energy, GDP, and markets, including state-level series for all fifty states, with NBER-dated recessions shaded.
On this site, dated FRED snapshots: a separate data-refresh script writes the observations, and the site build renders those saved observations without fetching.
The Quarto documents retrieve series through tidyquant's FRED interface, reshape them with tidyverse and timetk, and render Plotly charts with hover labels, using reactable and gt where a table makes comparisons easier. The ticker universe, the cleaning functions, the plotting wrapper, the recession shading, and the palette live in one R package of my own that all sixteen pages call into.
The Data Lab's twelve-month forecasts come from an offline Python pipeline over the same FRED snapshots, listed below: a table of models, each backtested on the months before its starting point, with the lowest-error model published.
Sixteen topic dashboards call into one package, so a change to the house style lands everywhere at once, and the package is reused by a second property. On this site, the Data Lab shows the indicators with twelve-month forecasts and a recession probability, each with its as-of month printed.
Each forecast model is scored against carrying the last value forward on the same backtest months, and the published bands come from the winning model's real backtest errors. The forecast files are parsed against a data contract at build time, so a file that breaks the contract fails the build instead of drawing.
Rebuilding this static site does not fetch new observations; each snapshot is refreshed by hand and shows its date. The same backtest picks and scores the winning model, so its score flatters it slightly. A month with no observation stays empty rather than filled.
One of the dashboards, ported to run on this static site: US unemployment on real FRED data back to 1976, with NBER recessions shaded. Last refreshed from FRED on 2026-10-26.
See the Data Lab for the yield curve, inflation, the fed funds rate, and the forecasts.
The parts worth pointing at
Where the engineering decisions actually mattered.
The Data Lab contains interactive FRED snapshots and forecasts with sources and dates. I can also walk through the data preparation, the models, and the original R workflow.