View source: R/plot.postmean.bspcov.R
plot.postmean.bspcov | R Documentation |
Provides a heat map for posterior mean estimate of sparse covariance matrix
## S3 method for class 'postmean.bspcov'
plot(x, ...)
x |
an object from estimate. |
... |
additional arguments for ggplot2. |
plot |
a heatmap for point estimate of covariance matrix x. |
Seongil Jo
estimate
n <- 25
p <- 50
Sigma0 <- diag(1, p)
X <- MASS::mvrnorm(n = n, mu = rep(0, p), Sigma = Sigma0)
res <- bspcov::thresPPP(X, eps=0.01, thres=list(value=0.5,fun='hard'), nsample=100)
est <- bspcov::estimate(res)
plot(est)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.