## Obtain some (high-dimensional) data
p = 25
n = 10
set.seed(333)
X = matrix(rnorm(n*p), nrow = n, ncol = p)
colnames(X)[1:25] = letters[1:25]
Cx <- cov(X)
## Obtain regularized precision matrix
P <- ridgeS(Cx, lambda = 10, type = "Alt")
## Obtain sparsified partial correlation matrix
PC0 <- sparsify(symm(P), type = "localFDR", FDRcut = .8)
## Visualize sparsified partial correlation matrix as heatmap
edgeHeat(PC0)
Run the code above in your browser using DataLab