plot.hhh4ZI | R Documentation |
hhh4ZI
ModelsForks of plot.hhh4
et al. to support
zero-inflated models fitted with hhh4ZI
.
## S3 method for class 'hhh4ZI'
plot(x, type = c("fitted", "maxEV", "season", "maps", "ri", "neweights"), ...)
plotHHH4ZI_fitted(
x,
units = 1,
names = NULL,
col = c("grey85", "blue", "orange"),
pch = 19,
pt.cex = 0.6,
pt.col = 1,
par.settings = list(),
legend = TRUE,
legend.args = list(),
legend.observed = FALSE,
decompose = NULL,
total = FALSE,
meanHHH = NULL,
...
)
plotHHH4ZI_fitted1(
x,
unit = 1,
main = NULL,
col = c("grey85", "blue", "orange"),
pch = 19,
pt.cex = 0.6,
pt.col = 1,
border = col,
start = x$stsObj@start,
end = NULL,
xaxis = NULL,
xlim = NULL,
ylim = NULL,
xlab = "",
ylab = "No. infected",
hide0s = FALSE,
decompose = NULL,
total = FALSE,
meanHHH = NULL
)
plotHHH4ZI_maps(
x,
which = c("mean", "endemic", "epi.own", "epi.neighbours", "zi"),
prop = FALSE,
main = which,
zmax = NULL,
col.regions = NULL,
labels = FALSE,
sp.layout = NULL,
...,
map = x$stsObj@map,
meanHHH = NULL
)
plotHHH4ZI_maxEV(
...,
matplot.args = list(),
refline.args = list(),
legend.args = list()
)
plotHHH4ZI_ri(
x,
component,
exp = FALSE,
at = list(n = 10),
col.regions = cm.colors(100),
colorkey = TRUE,
labels = FALSE,
sp.layout = NULL,
gpar.missing = list(col = "darkgrey", lty = 2, lwd = 2),
...
)
plotHHH4ZI_season(
...,
components = NULL,
intercept = FALSE,
xlim = NULL,
ylim = NULL,
xlab = NULL,
ylab = "",
main = NULL,
par.settings = list(),
matplot.args = list(),
legend = NULL,
legend.args = list(),
refline.args = list(),
unit = 1,
period = NULL
)
plotHHH4ZI_neweights(x, plotter = boxplot, ..., exclude = 0, maxlag = Inf)
x |
a fitted |
type |
type of plot: either |
... |
For |
units , unit |
integer or character vector specifying a single
|
names , main |
main title(s) for the selected
|
col , border |
length 3 vectors specifying the fill and border colors for the endemic, autoregressive, and spatio-temporal component polygons (in this order). |
pch , pt.cex , pt.col |
style specifications for the dots drawn to represent
the observed counts. |
par.settings |
list of graphical parameters for
|
legend |
Integer vector specifying in which of the
|
legend.args |
list of arguments for |
legend.observed |
logical indicating if the legend should contain a line for the dots corresponding to observed counts. |
decompose |
if |
total |
logical indicating if the fitted components should be
summed over all units to be compared with the total observed
counts at each time point. If |
meanHHH |
(internal) use different component means than those
estimated and available from |
start , end |
time range to plot specified by vectors of length two
in the form |
xaxis |
if this is a list (of arguments for
|
xlim |
numeric vector of length 2 specifying the x-axis range.
The default ( |
ylim |
y-axis range.
For |
xlab , ylab |
axis labels. For |
hide0s |
logical indicating if dots for zero observed counts should be omitted. Especially useful if there are too many. |
which |
a character vector specifying the components of the mean for which to produce maps. By default, the overall mean and all three components are shown. |
prop |
a logical indicating whether the component maps should display proportions of the total mean instead of absolute numbers. |
zmax |
a numeric vector of length |
col.regions |
a vector of colors used to encode the fitted
component means (see |
labels |
determines if and how regions are labeled, see
|
sp.layout |
optional list of additional layout items, see
|
map |
an object inheriting from |
matplot.args |
list of line style specifications passed to
|
refline.args |
list of line style specifications (e.g.,
|
component |
component for which to plot the estimated
region-specific random intercepts. Must partially match one of
|
exp |
logical indicating whether to |
at |
a numeric vector of breaks for the color levels (see
|
colorkey |
a Boolean indicating whether to draw the color key.
Alternatively, a list specifying how to draw it, see
|
gpar.missing |
list of graphical parameters for
|
components |
character vector of component names, i.e., a subset
of |
intercept |
logical indicating whether to include the global
intercept. For |
period |
a numeric value giving the (longest) period of the
harmonic terms in the model. This usually coincides with the
|
plotter |
the (name of a) function used to produce the plot of
weights (a numeric vector) as a function of neighbourhood order (a
factor variable). It is called as
|
exclude |
vector of neighbourhood orders to be excluded from
plotting (passed to |
maxlag |
maximum order of neighbourhood to be assumed when
computing the |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.