plot_time_series.Rd
Static plots (default) are only based on the dates of the latest `number_of_weeks` weeks. Interactive plots are based on all data, but zoom in by default on the latest `number_of_weeks` weeks.
plot_time_series(
results,
interactive = FALSE,
intervention_date = NULL,
number_of_weeks = 52
)
data returned by the get_signals_farringtonflexible()
logical, if TRUE, interactive plot is returned; default, static plot.
A date object or character of format yyyy-mm-dd or NULL specifying the date for the intervention in the pandemic correction models. Default is NULL which indicates that no intervention is done.The intervention is marked with a dashed line.
number of weeks to be covered in the plot
either a gg or plotly object
if (FALSE) {
data <- read.csv("data/input/input.csv", header = TRUE, sep = ",")
results <- get_signals_farringtonflexible(data)
plot_time_series(results)
}