Description Usage Arguments Value
Plot the time series for each flu season (week 40 - week 21).
1 2 3 4 5 |
time_series_names |
The column name for the time series (same in length as data + datalist) |
datalist |
A list of data frame to plot multiple time series (alternative to data) |
subset_seasons |
Seasons to keep |
ncol |
Number of columns |
no_y_axis |
Whether to emove y axis label |
season_label |
Whether to remove season label |
title |
The title of the plot |
scales |
Parameter for facet_wrap ("free_x", "free_y", "fixed") |
log_y |
Whether to log y axis |
error_band_names |
A data frame that record the variable names for lower and upper bound |
correlate_ts |
A data frame containing three columns (time, week, time series) for annotation; must be in order |
label_x |
x coordinate of correlation annotation |
label_y |
y coordinate of correlation annotation |
add_forecasts |
A data frame containing the forecast values (output df from forecast_starting) |
data |
A data frame contain three columns (year, week, the time series); the column names for year and week must be "year" and "week" |
A ggplot object visualizing from week 40 to week 21
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.