plot.rSIR: S3 plot method for stochastic SIR model

Description Usage Arguments Examples

View source: R/plot.R

Description

plot returns the time series plot of simulated SIR model

Usage

1
2
## S3 method for class 'rSIR'
plot(x)

Arguments

x

the output from simulation

Examples

1
2
model1 <- rSIR (N0 = 1000, I0 = 0, S0 = 1000, days = 300, pars = c(1/10, 1, 1/5, 0.1, 0.1))
plot(model1)

jessseliu/epidmod documentation built on Sept. 15, 2020, 8:53 p.m.