Learn R Programming

bspcov (version 1.0.0)

plot.postmean.bspcov: Draw a Heat Map for Point Estimate of Covariance Matrix

Description

Provides a heat map for posterior mean estimate of sparse covariance matrix

Usage

# S3 method for postmean.bspcov
plot(x, ...)

Value

plot

a heatmap for point estimate of covariance matrix x.

Arguments

x

an object from estimate.

...

additional arguments for ggplot2.

Author

Seongil Jo

See Also

estimate

Examples

Run this code

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)

Run the code above in your browser using DataLab