# Simulate and visualise a random correlation matrix with 10 columns and rows.
cor_mat <- rand_cor_mat(
n = 10,
min.cor = -0.2,
max.cor = 0.8,
pos.def = TRUE
)
plot_matrix(
mat = cor_mat,
order = TRUE
)
Run the code above in your browser using DataLab