ccor <-
function (vcv)
{
if (length(vcv) == 1) {
xx <- as.matrix(1)
}
else {
xx <- diag(1/sqrt(abs(diag(vcv)))) %*% vcv %*% diag(1/sqrt(abs(diag(vcv))))
}
dimnames(xx) <- dimnames(vcv)
return(xx)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.