Plot any FRED time series

visualize_fred_time_series(
  series_id = "DGS2",
  use_random = FALSE,
  fred_data_transformation = NULL,
  date_start = NULL,
  date_end = NULL,
  plot_transformations = c("mean", "median", "smooth"),
  use_hrbr_theme = FALSE,
  plot_labels = FALSE,
  interactive = FALSE
)

Arguments

series_id

any FRED series ID

use_random

if TRUE a random FRED series ID is chosen

date_start

data start date, if NULL all chosen

date_end

data end date

plot_transformations

Any plot transformations you wish to apply

  • median: Median value mean: Mean value smooth: GAM smooth line

use_hrbr_theme

uses Bob Rudis theme

plot_labels

if TRUE text of any plot transformations are plotted

interactive

if TRUE visualization turned into an interactive plotly widget

fred_data_transformations

Any FRED transformation

  • default

  • change

  • change prior year

  • percent change

  • percent change prior year

  • compounded rate of change

  • continiously compounded rate of change

  • continiously compounded annual rate of change

  • natural log

  • index

Value

if interactive a plotly htmlwidget or else a static ggplot2 visualization

Examples