add_forecast_dates: Add the forecast dates to a plot

View source: R/plot.R

add_forecast_datesR Documentation

Add the forecast dates to a plot

Description

Add the forecast dates to a plot

Usage

add_forecast_dates(plot, forecast_dates = NULL)

Arguments

plot

ggplot2 object

forecast_dates

A data.frame in the format produced by extract_forecast_dates() (with at least a date variable and a Data unavailable variable)). Specifies when date availability should be add to plots. May contain faceting variables.

Value

A ggplot2 plot with dates of data unavailability added.

See Also

Plotting functions plot.fv_forecast(), plot.fv_posterior(), plot_cases(), plot_default(), plot_growth(), plot_pairs(), plot_posterior(), plot_rt(), plot_theme(), plot_voc_advantage(), plot_voc_frac(), save_plots()


epiforecasts/forecast.vocs documentation built on May 14, 2023, 2 p.m.