Learn R Programming

R0 (version 1.2-6)

plotfit.R0.R: Plot the fit of a model to epidemic data

Description

Plots the fit of a model to epidemic data

Usage

"plotfit"(x, all = TRUE, xscale = "w", SB.dist = TRUE, ...)

Arguments

x
Result of est.R (class R0.R)
all
Should the whole epidemic curve be shown
xscale
Scale to be adjusted on X axis. Can be "d" (day), "w" (week (default)), "f" (fornight), "m" (month).
SB.dist
Should R distribution throughout the epidemic be plotted for SB method? (default: TRUE)
...
Parameters passed to plot

Value

Draws the fit of one estimation method to the data.

Details

For internal use. Called by plotfit.

For internal use. Called by plotfit.R0.sR.