Plot Moving Average Time Series
iidda_plot_ma.RdAdd a moving average time series line to an exiting ggplot plot object. Graphical choices were made
to closely reflect plots generated with LBoM::plot.LBoM.
Arguments
- plot_object
 a
ggplot2plot object- data
 data frame containing moving average time series data, typically output from
iidda_prep_ma(). IfNULLdata is inherited fromplot_object- series_variable
 column name of series variable in
data, default is "deaths"- time_variable
 column name of time variable in
data, default is "period_end_date"