plot.brmsfit {brms} | R Documentation |
Trace and Density Plots for MCMC Draws
Description
Trace and Density Plots for MCMC Draws
Usage
## S3 method for class 'brmsfit'
plot(
x,
pars = NA,
combo = c("hist", "trace"),
nvariables = 5,
N = NULL,
variable = NULL,
regex = FALSE,
fixed = FALSE,
bins = 30,
theme = NULL,
plot = TRUE,
ask = TRUE,
newpage = TRUE,
...
)
Arguments
x |
An object of class |
pars |
Deprecated alias of |
combo |
A character vector with at least two elements.
Each element of |
nvariables |
The number of variables (parameters) plotted per page. |
N |
Deprecated alias of |
variable |
Names of the variables (parameters) to plot, as given by a
character vector or a regular expression (if |
regex |
Logical; Indicates whether |
fixed |
(Deprecated) Indicates whether parameter names
should be matched exactly ( |
bins |
Number of bins used for posterior histograms (defaults to 30). |
theme |
A |
plot |
Logical; indicates if plots should be
plotted directly in the active graphic device.
Defaults to |
ask |
Logical; indicates if the user is prompted
before a new page is plotted.
Only used if |
newpage |
Logical; indicates if the first set of plots
should be plotted to a new page.
Only used if |
... |
Further arguments passed to
|
Value
An invisible list of
gtable
objects.
Examples
## Not run:
fit <- brm(count ~ zAge + zBase * Trt
+ (1|patient) + (1|visit),
data = epilepsy, family = "poisson")
plot(fit)
## plot population-level effects only
plot(fit, variable = "^b_", regex = TRUE)
## End(Not run)