Provides methods to plot estimated time trends of vaccine coverage for countries.

ic_plot(
  X,
  probs = c(0.025, 0.975),
  vaccine,
  observed = TRUE,
  prediction = TRUE,
  wuenic = FALSE,
  filter_yovi = FALSE,
  ncol = 4,
  interactive = FALSE
)

# S3 method for icfit
ic_plot(
  X,
  probs = c(0.025, 0.975),
  vaccine,
  observed = TRUE,
  prediction = TRUE,
  wuenic = FALSE,
  filter_yovi = FALSE,
  ncol = 4,
  interactive = FALSE
)

# S3 method for iclist
ic_plot(
  X,
  probs = c(0.025, 0.975),
  vaccine,
  observed = TRUE,
  prediction = TRUE,
  filter_yovi = FALSE,
  ncol = 4,
  interactive = FALSE
)

Arguments

X

Object of type icfit or iclist

probs

Numeric vector of length 2 for probabilities with values in 0,1 to be used to calculate the upper and lower credible intervals.

vaccine

Optional. Character vector to subset which vaccines to plot

observed

Logical. Should the observed data used to fit X be overlaid on the plot? Default is TRUE.

prediction

Logical. If predictions are found in the icfit object, should they be overlaid on the plot? Default is TRUE.

wuenic

Logical. Should WUENIC vaccination coverage estimates be overlaid on the plot? Default is FALSE.

filter_yovi

Logical. Should the estimates be filtered by year of vaccine introduction? Default is FALSE.

ncol

When plotting multiple countries, the number of plots per page.

interactive

Logical. Should the output be interactive? Default is FALSE.

Value

A plot of the coverage estimates extracted from the fit, including credible intervals.

Details

If observed data are provided, they will be overlaid on the estimates.