#' A function to print similarity across ML predictions.
reorder_cormat <- function(cormat){
# Use correlation between variables as distance
dd <- as.dist((1-cormat)/2)
hc <- hclust(dd)
cormat <-cormat[hc$order, hc$order]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.