Learn R Programming

bspcov (version 1.0.3)

save_quantile_plot: Save quantile plot to file

Description

Convenience function to save quantile plots with appropriate dimensions.

Usage

save_quantile_plot(x, filename, width = NULL, height = 6, ...)

Arguments

x

an object of class quantile.bspcov.

filename

filename to save the plot.

width

plot width. If NULL, calculated based on number of quantiles.

height

plot height. Default is 6.

...

additional arguments passed to plot.quantile.bspcov and ggsave.

Examples

Run this code
# \donttest{
# Example with simulated data
n <- 25
p <- 50
Sigma0 <- diag(1, p)
X <- MASS::mvrnorm(n = n, mu = rep(0, p), Sigma = Sigma0)
res <- bspcov::bandPPP(X, 2, 0.01, nsample = 100)
quant <- quantile(res)
# }

Run the code above in your browser using DataLab