plot_trajectories_and_intervals: Plot trajectories and intervals

Description Usage Arguments Value

View source: R/plot_trajectories_and_intervals.R

Description

Plot trajectories and intervals

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
plot_trajectories_and_intervals(
  flu_data,
  target_variable,
  trajectories_by_location,
  submission,
  season_start_ew,
  season_end_ew,
  cdc_report_ew,
  ylim,
  lookback_length = 30,
  plot = TRUE
)

Arguments

flu_data

A dataframe housing the flu data from the result of download_and_preprocess...

target_variable

variable to be plotted

trajectories_by_location

A series of trajectories (nsim*h) per location

submission

the submission dataframe

season_start_ew

epidemic week starting the season

season_end_ew

epidemic week ending the season

cdc_report_ew

epidemic week of the CDC data

ylim

numeric vector specifying lower and upper limits of y axis; optional

lookback_length

integer number of weeks of reported ILINet data to include

plot

boolean;

Value

logical. If TRUE (default), the plot is printed.


reichlab/cdcForecastUtils documentation built on May 6, 2020, 10:43 a.m.