Diagnostic plots of a particle filter (pfilter) run. If
y is missing, the function displays two panels: the
filtered trajectory of the model (top) and the effective sample
size (ESS) at each time point in tspan (bottom).
Alternatively, if y is a character vector or a formula, the
plot function for a SimInf_model object is called with the
filtered trajectory, which allows specifying compartments and
prevalence expressions, see
plot for more details
about the specification of a plot.
Usage
# S4 method for class 'SimInf_pfilter'
plot(x, y, ...)Arguments
- x
The
SimInf_pfilterobject to plot.- y
If
yisNULLor missing (default), the filtered trajectory (top) and the effective sample size (bottom) are displayed. Ifyis a character vector or a formula, the plot function for aSimInf_modelobject is called with the filtered trajectory, seeplotfor more details about the specification of a plot.- ...
Other graphical parameters that are passed on to the plot function.