View source: R/diagnostic_plots.R
plotcor_jags | R Documentation |
Plots a correlation matrix of all MCMC samples from an object returned by 'jagsUI', or an optional subset of parameter nodes. Correlation is plotted as shades of red (positive) or blue (negative).
In the case of vectors or arrays of nodes for each parameter name, a single axis tick will be used for all nodes with a single name. This has the effect of giving greater visual weight to single parameters, and reducing plot clutter.
Values of correlation are overlayed for all parameters with few nodes, with character size scaled according to the absolute correlation.
plotcor_jags(
x,
p = NULL,
exact = FALSE,
mincor = 0,
maxn = 4,
maxcex = 1,
legend = TRUE,
...
)
x |
Output object returned from |
p |
Optional string to begin posterior names. If |
exact |
Whether name must be an exact match ( |
mincor |
Minimum (absolute) correlation to use for text labels. Defaults to 0 (all will be plotted) |
maxn |
Maximum number of nodes per parameter name for text labels, to prevent plot clutter. Defaults to 4. |
maxcex |
Maximum character expansion factor for text labels. Defaults to 1. |
legend |
Whether to produce a plot legend. Defaults to |
... |
Optional plotting arguments |
NULL
Matt Tyers
cor_jags
plotcor_jags(asdf_jags_out, maxcex=0.7)
plotcor_jags(SS_out, p=c("trend","rate","sig"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.