Learn R Programming

jagshelper (version 0.4.0)

pairstrace_jags: Pairs trace plot

Description

Two-dimensional trace plots (or alternately, scatter plots or contour plots) of each possible pair of parameters from a possible subset. May be useful in assessing correlation between parameter nodes, or problematic posterior surfaces.

Usage

pairstrace_jags(
  x,
  p = NULL,
  points = FALSE,
  contour = FALSE,
  lwd = 1,
  alpha = 0.2,
  parmfrow = NULL,
  ...
)

Value

NULL

Arguments

x

Output object returned from jagsUI

p

Optional vector of parameters to subset

points

Whether to plot as scatter plots instead. Defaults to FALSE.

contour

Whether to plot as contour plots instead. Defaults to FALSE.

lwd

Line width for trace plots. Defaults to 1.

alpha

Opacity of lines (or points, when points=TRUE). Defaults to 0.2.

parmfrow

Optional call to par(mfrow) for the number of rows & columns of plot window. Returns the graphics device to previous state afterward.

...

additional plotting arguments or arguments to tracedens_jags()

Author

Matt Tyers

See Also

tracedens_jags, crossplot

Examples

Run this code
pairstrace_jags(SS_out, p="sig", parmfrow=c(2,3), lwd=2)
pairstrace_jags(SS_out, p="sig", parmfrow=c(2,3), points=TRUE)
pairstrace_jags(SS_out, p="sig", parmfrow=c(2,3), contour=TRUE)

pairstrace_jags(asdf_jags_out, parmfrow=c(3,3))
pairstrace_jags(asdf_jags_out, parmfrow=c(3,3), points=TRUE)
pairstrace_jags(asdf_jags_out, parmfrow=c(3,3), contour=TRUE)

Run the code above in your browser using DataLab