intensityplot method to plot the evolution of the total infection
intensity, its epidemic proportion or its endemic proportion over time
or space (integrated over the other dimension) of fitted
twinstim models.The intensity.twinstim auxiliary function returns functions which
calculate the endemic or epidemic intensity at a specific time point or
location (integrated over the other dimension).
## S3 method for class 'twinstim':
intensityplot(x,
which = c("epidemic proportion", "endemic proportion", "total intensity"),
aggregate = c("time", "space"), types = 1:nrow(x$qmatrix),
tiles, tiles.idcol = NULL, plot = TRUE, add = FALSE,
tgrid = 101, rug.opts = list(),
sgrid = 128, polygons.args = list(), points.args = list(),
cex.fun = function(counts) sqrt(1.5 * counts/pi/min(counts)),
...)intensity.twinstim(x,
aggregate = c("time", "space"), types = 1:nrow(x$qmatrix),
tiles, tiles.idcol = NULL)
"twinstim"."epidemic proportion", "endemic proportion",
or "total intensity". Partial matching is applied. Determines
whether to plot the path of the total intensity or its
epidemic or endemic proportions over ti"time" or "space". The former results in a plot
of the evolution of which as a function of time (integrated
over the observation region $\bold{W}$), whereas the latter
produces a spplotSpatialPolygons representing
the decomposition of $\bold{W}$ into different regions (as used
in the corresponding stgrid of the "epidataCStiles@data, or NULL
(default), which refers to the "ID" slot of the polygons.
The resulting ID's must correspond to the ID's used in the
tile column of the stgTRUE.
Otherwise, a function will be returned, which takes a vector of time
points (if aggregate = "time") or a matrix of coordinates (if
aggregate = "spTRUE and aggregate = "time", paths are
added to the current plot, using lines. This does not work
for aggregate = "space".which, or a scalar representing the desired number of
evaluation points in the observation interval $[t_0, T]$.
This argument is unused for aggregate = "space".rug, which will mark the time points of the events if
aggregate = "time" (it is unused in the spatial case);
otherwise (e"SpatialPixels " (or
coercible to that class) representing the locations where to
evaluate which, or a scalar representing the total
number of points of a grid constsp.polygons, which will add tiles to the plot
if aggregate = "space" (it is unused for the temporal plot).
By defsp.points, which will add the event locations to the plot
if aggregate = "space" (it is unused for the temporal plot).
By defaulcex
value(s) for the sizes of the points at the event locations used in
points.args.plot or lines (if
aggregate = "time"), or to spplot (if
aggregate = "space").plot = FALSE or aggregate = "time",
a function is returned, which takes a vector of
time points (if aggregate = "time") or a matrix of coordinates
(if aggregate = "space"), and returns which on this grid. If plot = TRUE and aggregate = "space", the
trellis.object containg the spatial plot is returned.