visualize_flu_season: Visualize the time series for each Flu Season

Description Usage Arguments Value

Description

Plot the time series for each flu season (week 40 - week 21).

Usage

1
2
3
4
5
visualize_flu_season(..., time_series_names, datalist = NULL,
  subset_seasons = NULL, ncol = 1, no_y_axis = TRUE,
  season_label = T, title = NULL, scales = "fixed", log_y = T,
  error_band_names = NULL, correlate_ts = NULL, label_x = NULL,
  label_y = NULL, add_forecasts = NULL)

Arguments

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"

Value

A ggplot object visualizing from week 40 to week 21


Mamie/PILAF documentation built on May 8, 2019, 8:53 p.m.