# NOT RUN {
data("tswv")
x <- tswv$x
y <- tswv$y
inftime <- tswv$inftime
removaltime <- tswv$removaltime
infperiod <- rep(3, length(x))
# change to epilate object
epidat.tswv <- as.epidata(type = "SIR", n = 520, x = x, y = y,
inftime = inftime, infperiod = infperiod)
# plot
plot(epidat.tswv, plottype = "spatial", tmin = 2)
# }
Run the code above in your browser using DataLab