Learn R Programming

fundManageR (version 0.5.02030319)

visualize_fred_time_series: Plot any FRED time series

Description

Plot any FRED time series

Usage

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"), 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

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

Run this code
# NOT RUN {
# }

Run the code above in your browser using DataLab