Learn R Programming

R0 (version 1.3-1)

plotfit.R0.sR: Plot a model fit for R0.sR objects

Description

Plot the fit of model outputs to epidemic data.

Usage

# S3 method for R0.sR
plotfit(x, xscale = "w", SB.dist = TRUE, ...)

Value

This function does not return any data. Called for side effect. Draws the fit of one or more estimation method to the data.

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).

SB.dist

Boolean. Should the R distirbution throughout the epidemic be plotted for the SB method (defaults to TRUE) ?

...

Parameters passed to inner functions.

Author

Pierre-Yves Boelle, Thomas Obadia

Details

For internal use. This function is called by the plotfit() S3 method. It will sequentialy call the necesary plotfit() methods for each estimation contained in the x argument.