Diagnostic plots for the Markov chains in an evmSim object
# S3 method for evmSim
ggplot(
data = NULL,
mapping,
which.plots = 1:3,
chain = 1,
denscol = "dark blue",
acfcol = "light blue",
plot.it = TRUE,
...,
environment
)
An object of class 'evmSim'.
ignored
Which plots to produce. Density plots correspond to 1, trace plots of the Markov chains to 2 and autocorrelation function plots to 3.
An integer indicating which chain to plot (only relevant if there is more than 1 chain). Defaults to 1. If you ran multiple chains, you should look at diagnostics for all of them.
Colour for the density plots. Defaults to 'dark blue'.
Colour for the ACF plots. Defaults to 'light blue'.
Whether or not to actually print the plots. Defaults
to plot.it=TRUE
. If plot.it=FALSE
, you might
want to control the layout. Do this with
do.call("grid.arrange", c(plots, ncol=2))
, for example,
where plots
is the objected returned by
ggplot.evmSim
.
Additional arguments to ggplot
, currently unused.