Learn R Programming

R0 (version 1.2-10)

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

Description

Plots the fit of a model to epidemic data

Usage

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

Value

Called for its side effect : Draws the fit of one estimation method to the data.

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.

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