Learn R Programming

jagshelper (version 0.4.0)

chaindens_jags: By-chain kernel densities of jagsUI object

Description

By-chain kernel densities of a whole jagsUI object, or optional subset of parameter nodes.

Usage

chaindens_jags(x, p = NULL, exact = FALSE, parmfrow = NULL, lwd = 1, ...)

Value

NULL

Arguments

x

Posterior jagsUI object

p

Parameter name for subsetting: if this is specified, only parameters with names beginning with this string will be plotted.

exact

Whether p should be an exact match (TRUE) or just match the beginning of the string (FALSE). Defaults to FALSE.

parmfrow

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

lwd

Line width for plotting. Defaults to 1.

...

additional plotting arguments

Author

Matt Tyers

See Also

tracedens_jags, trace_jags, chaindens_line, chaindens_df

Examples

Run this code

chaindens_jags(asdf_jags_out, parmfrow=c(4,2))
chaindens_jags(x=asdf_jags_out, p="a", parmfrow=c(3,1))

Run the code above in your browser using DataLab