Learn R Programming

R0 (version 1.3-1)

plot.R0.sR: Plot the R0/Rt value along with confidence interval

Description

Generates the graphical output for estimated \(R\) or \(R(t)\) fits.

Usage

# S3 method for R0.sR
plot(x, xscale = "w", TD.split = FALSE, ...)

Value

This function does not return any data. Called for side effect. Draws all \(R_{0}\) or /eqnR(t) values from an output of estimate.R(), built with one or more methods.

Arguments

x

An output of estimate.R() (class R0.sR)

xscale

Scale to be adjusted on x-axis. Can be d (day), w (week (default)), f (fornight), m (month).

TD.split

Boolean. Parameter to force the display of both \(R(t)\) and the epidemic curve in the same window for the TD method.

...

Parameters passed to inner functions.

Author

Pierre-Yves Boelle, Thomas Obadia

Details

For internal use. Called by [base::plot())].

Tweaked [base::plot()] function that draws the reproduction number values for each method contained in the object constructed by [estimate.R()].

[base::plot())]: R:base::plot()) [base::plot()]: R:base::plot() [estimate.R()]: R:estimate.R()