Learn R Programming

MethComp (version 1.30.2)

pairs.MCmcmc: Create a pairs plot for an MCmcmc object

Description

Create a pairs plot for an MCmcmc object

Usage

# S3 method for MCmcmc
pairs(
  x,
  what = "sd",
  subset = NULL,
  col = NULL,
  pch = 16,
  cex = 0.2,
  scales = "free",
  ...
)

Value

A Lattice plot.

Arguments

x

An MCmcmc object.

what

Character indicating what parameters to plot. Possible values are "sd" or "var" which gives plots for the variance components (on the sd. scale), "beta" or "slope", which gives plots for slope parameters and "alpha" or "int", which gives plots for the intercept parameters.

subset

Character or numerical indicating the columns of the posterior that should be plotted by pairs.

col

Color of the lines points used for plotting of the posterior densities.

pch

Plot symbol for the points.

cex

Plot character size for points in pairs.

scales

Character vector of length two, with possible values "same" or "free", indicating whether x- and y-axes of the plots should be constrained to be the same across panels. For pairs only the first element is used to decide whether all panles should have the same axes.

...

Further aruments passed on to the Lattice function called: trace calls xyplot.mcmc from the coda package, post calls densityplot.mcmc from the coda package, calls pairs from the graphics package.

Author

Bendix Carstensen, Steno Diabetes Center, bendix.carstensen@regionh.dk , https://BendixCarstensen.com.

See Also

MCmcmc, plot.MCmcmc, ox.MC, sbp.MC