Learn R Programming

EpiILM (version 1.2)

epispatial: Spatial Plot

Description

Produce spatial plots of epidemic progression over time

Usage

epispatial(type, x, y, inftime, removaltime=NULL, time=NULL, tmin=NULL)

Arguments

type
Type of compartment framework, with the choice of "SI" for Susceptible-Infectious diseases and "SIR" for Susceptible-Infectious-Removed
x
X coordinates of individuals
y
Y coordinates of individuals
inftime
Times at which individuals become infected/infectious
removaltime
Times at which individuals are removed
time
Specify time points at which the spatial square is plotted
tmin
Initial time point at which infection occurs, default value is one