Learn R Programming

R0 (version 1.2-10)

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

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

Value

Called for its side effect : Draws all the epidemic curves and associated fit data computed by est.R0

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

Author

Pierre-Yves Boelle, Thomas Obadia

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