matrix_density_plota | R Documentation |
Density plot of all values in the lower triangular part of a matrix.
matrix_density_plot(x, xlab = "Entries in the lower triangular matrix",
main = "", text = NULL, side = 4, line = 1, adj = 0, ...)
x |
|
xlab |
x-axis label. |
main |
title. |
text |
see |
side |
see |
line |
see |
adj |
see |
... |
additional arguments passed to the underlying |
matrix_density_plot()
is typically used for symmetric matrices
(like correlation matrices, matrices of pairwise Kendall's tau or tail
dependence parameters) to check the distribution of their off-diagonal
entries.
invisible()
.
Marius Hofert
## Generate a random correlation matrix
d <- 50
L <- diag(1:d)
set.seed(271)
L[lower.tri(L)] <- runif(choose(d,2))
Sigma <- L
P <- cor(Sigma)
## Density of its lower triangular entries
matrix_density_plot(P)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.