Generic functions for plotting objects of class "bayesx" and model term classes
"geo.bayesx", "linear.bayesx", "mrf.bayesx", "random.bayesx" and
"sm.bayesx".
Usage
## S3 method for class 'bayesx'
plot(x, model = NULL, term = NULL, which = 1L, ask = FALSE, ...)
Arguments
x
a fitted bayesx object.
model
for which model the plot should be provided, either an integer or a character, e.g.
model = "mcmc.model".
term
the term that should be plotted, either an integer or a character, e.g.
term = "sx(x)".
which
choose the type of plot that should be drawn, possible options are: "effect",
"coef-samples", "var-samples", "intcpt-samples", "hist-resid",
"qq-resid", "scatter-resid", "scale-resid", "max-acf". Argument
which may also be specified as integer, e.g. which = 1. The first three arguments
are all model term specific. For the residual model diagnostic plot options which
may be set with which = 5:8.
ask
...
...
other graphical parameters passed to plotblock, plotmap,
plot2d, plot3d, acf and
density.
Details
Depending on the class of the term that should be plotted, function plot.bayesx calls one
of the following plotting functions in the end:
plotblock,
plotsamples,
plotmap,
plot2d,
plot3d,
acf,
density,
For details on argument specifications, please see the help sites for the corresponding function.
If argument x contains of more than one model and e.g. term = 2, the second terms
of all models will be plotted
Note
If a model is specified with a structured and an unstructured spatial effect, e.g. the model
formula is something like y ~ sx(id, bs = "mrf", map = MapBnd) + sx(id, bs = "re"), the
model output contains of one additional total spatial effect, named with "sx(id):total".
Also see the last example.
Author(s)
Nikolaus Umlauf, Thomas Kneib, Stefan Lang, Achim Zeileis.