densityplot: Density plots of JAGS output

View source: R/densityplot.R

densityplotR Documentation

Density plots of JAGS output

Description

Displays a series of density plots for posteriors of monitored parameters in a JAGS analysis.

Usage

  densityplot(x, parameters=NULL, layout=NULL, ask=NULL)

Arguments

x

A jagsUI object

parameters

A vector of names (as characters) of parameters to plot. Parameter names must match parameters included in the model. Calling non-scalar parameters without subsetting (e.g. alpha) will plot all values of alpha. If parameters=NULL, all parameters will be plotted.

layout

A length 2 vector with the number of rows and columns to display in the plot. The default is 3 x 3, or smaller if there are fewer parameters to plot.

ask

If TRUE, ask user for confirmation before generating each new plot; the default is to ask when output is going to the screen, not when it is going to a file.

Author(s)

Ken Kellner contact@kenkellner.com.


jagsUI documentation built on May 29, 2024, 9:59 a.m.