plot.emc {EMC2} | R Documentation |
Plot function for emc objects
Description
Makes trace plots for model parameters.
Usage
## S3 method for class 'emc'
plot(
x,
stage = "sample",
selection = c("mu", "sigma2", "alpha"),
layout = NA,
...
)
Arguments
x |
An object of class |
stage |
A character string indicating the sampling stage to be summarized.
Can be |
selection |
A character vector indicating the parameter group(s).
Defaults to |
layout |
A vector indicating which layout to use as in par(mfrow = layout). If NA, will automatically generate an appropriate layout. |
... |
Optional arguments that can be passed to |
Value
A trace/acf plot of the selected MCMC chains
Examples
plot(samples_LNR)
# Or trace autocorrelation for the second subject:
plot(samples_LNR, subject = 2, selection = "alpha")
# Can also plot the trace of for example the group-level correlation:
plot(samples_LNR, selection = "correlation", col = c("green", "purple", "orange"), lwd = 2)
[Package EMC2 version 2.1.0 Index]