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

View source: R/ggplot.bayes.R

ggplot.evmSimR Documentation

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 class '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.


texmex documentation built on June 22, 2024, 12:26 p.m.