Description Usage Arguments Value
View source: R/plot_trajectories_and_intervals.R
Plot trajectories and intervals
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
)
|
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; |
logical. If TRUE (default), the plot is printed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.