Learn R Programming

R0 (version 1.2-6)

plotfit.R0.sR: Plot the fit of all requested models to epidemic data

Description

Plots the fit of all requested models 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 all the epidemic curves and associated fit data computed by est.R0

Details

For internal use. Called by plotfit.

Tweaked plot() function that draws the epidemic data and model fit of each method contained in the object constructed by est.RO().