Learn R Programming

texmex (version 2.4.9)

ggplot.evmSim: Diagnostic plots for the Markov chains in an evmSim object

Description

Diagnostic plots for the Markov chains in an evmSim object

Usage

# S3 method for evmSim
ggplot(
  data = NULL,
  mapping,
  which.plots = 1:3,
  chain = 1,
  denscol = "dark blue",
  acfcol = "light blue",
  plot.it = TRUE,
  ...,
  environment
)

Arguments

data

An object of class 'evmSim'.

mapping, environment

ignored

which.plots

Which plots to produce. Density plots correspond to 1, trace plots of the Markov chains to 2 and autocorrelation function plots to 3.

chain

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.

denscol

Colour for the density plots. Defaults to 'dark blue'.

acfcol

Colour for the ACF plots. Defaults to 'light blue'.

plot.it

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.