Returns two graphs of Covidestim input and estimates

# S3 method for covidestim_result
viz(ccr, renderPDF = FALSE)

Arguments

ccr

The result of calling run. An object of class covidestim_result.

renderPDF

If FALSE, figures are returned as a list of ggplot objects. If a string, a pdf will be rendered to that location, and and the list of ggplot objects will still be returned.

Value

A list with the following keys:

  • observedVsFitted A ggplot of input cases/deaths data, and the fit of the model to that data.

  • infectionsAndCases A ggplot of estimated daily infections, compared to reported/observed cases.

See also

summary.covidestim_result for more details on the quantities being plotted