plot.estimate_secondary: Plot method for estimate_secondary

View source: R/estimate_secondary.R

plot.estimate_secondaryR Documentation

Plot method for estimate_secondary

Description

[Experimental] plot method for class "estimate_secondary".

Usage

## S3 method for class 'estimate_secondary'
plot(x, primary = FALSE, from = NULL, to = NULL, new_obs = NULL, ...)

Arguments

x

A list of output as produced by estimate_secondary

primary

Logical, defaults to FALSE. Should primary reports also be plot?

from

Date object indicating when to plot from.

to

Date object indicating when to plot up to.

new_obs

A ⁠<data.frame>⁠ containing the columns date and secondary which replace the secondary observations stored in the estimate_secondary output.

...

Pass additional arguments to plot function. Not currently in use.

Value

A ggplot object.

See Also

plot estimate_secondary


EpiNow2 documentation built on Oct. 31, 2024, 5:09 p.m.