plotfit.R0.R: Plot a model fit for 'R0.R' objects

View source: R/plotfit.R0.R.R

plotfit.R0.RR Documentation

Plot a model fit for R0.R objects

Description

Plot the fit of a single model output to epidemic data.

Usage

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

Arguments

x

An output of est.R0.xx() (class R0.R).

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.

Details

For internal use. This function is called by the plotfit() S3 method. Depending on the estimation method, either plotfitRxx(), plotfitRAR() or plotfitRSB() will be called.

Value

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

Author(s)

Pierre-Yves Boelle, Thomas Obadia


R0 documentation built on Sept. 26, 2023, 5:10 p.m.

Related to plotfit.R0.R in R0...