plot.lugsail_gr: Plot Method for lugsail_gr Objects

View source: R/s3_methods.R

plot.lugsail_grR Documentation

Plot Method for lugsail_gr Objects

Description

Produces diagnostic plots for MCMC chains, including trace plots, running Gelman-Rubin statistic \hat{R}_L plots, and density estimates.

Usage

## S3 method for class 'lugsail_gr'
plot(x, type = c("all", "trace", "running_gr", "density"), ...)

Arguments

x

An object of class "lugsail_gr".

type

Character string specifying plot type: "all" (default), "trace", "running_gr", or "density".

...

Additional graphical parameters.

Value

No return value, called for side effects (generating plots).

Examples

set.seed(123)
chain1 <- rnorm(500)
chain2 <- rnorm(500)
fit <- lugsail_gr(list(chain1, chain2))
plot(fit, type = "running_gr")

LugsailGR documentation built on Aug. 5, 2026, 9:08 a.m.