parcorplot <- function(mcmcout, parms=NULL, regex=NULL, random=NULL, col=gray(11:0/11), ...){
if (!(is.mcmc(mcmcout) | is.mcmc.list(mcmcout)))
mcmcout <- as.mcmc(mcmcout)
if (!is.mcmc.list(mcmcout))
mcmcout <- mcmc.list(mcmcout)
parnames <- parms2plot(varnames(mcmcout), parms, regex, random)
mat <- cor(as.matrix(mcmcout[, parnames, drop=FALSE]))
corplot(mat, col=col, ...)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.