| plot.lugsail_gr | R Documentation |
Produces diagnostic plots for MCMC chains, including trace plots,
running Gelman-Rubin statistic \hat{R}_L plots, and density estimates.
## S3 method for class 'lugsail_gr'
plot(x, type = c("all", "trace", "running_gr", "density"), ...)
x |
An object of class |
type |
Character string specifying plot type: |
... |
Additional graphical parameters. |
No return value, called for side effects (generating plots).
set.seed(123)
chain1 <- rnorm(500)
chain2 <- rnorm(500)
fit <- lugsail_gr(list(chain1, chain2))
plot(fit, type = "running_gr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.