plot.Siid: Plot Siid

plot.SiidR Documentation

Plot Siid

Description

Density plots with simultaenous error bars around means and quantiles for iid data.

Usage

## S3 method for class 'Siid'
plot(x, Q = c(0.1, 0.9), alpha = 0.05, thresh = 0.001, 
                           rug = TRUE, plot = TRUE, mean = TRUE, border = NA,
                           mean.col = 'plum4', quan.col = 'lightsteelblue3', 
                           opaq = 0.7, auto.layout = TRUE, 
                           ask = dev.interactive(), ...)

Arguments

x

: a ‘Siid’ class object

Q

: vector of quantiles

alpha

: confidence level of simultaneous confidence intervals

thresh

: numeric typically less than .005 for the accuracy of the simulteaneous procedure

rug

: logical indicating whether a rug plot is desired

plot

: logical argument for is plots are to be returned

mean

: logical argument whether the mean is to be plotted

border

: whether a border is required for the simultaneous confidence intervals

mean.col

: color for the mean confidence interval

quan.col

: color for the quantile confidence intervals

opaq

: opacity of mean.col and quan.col. A value of 0 is transparent and 1 is completely opaque.

auto.layout

: logical argument for an automatic layout of plots

ask

: activating interactive plots

...

: arguments passed on to the density plot in base R

Value

returns a plot of the univariate density estimates with simultaneous confidence intervals wherever asked. If plot == FALSE a list of estimates and simultaneous confidence intervals.

References

Robertson, N., Flegal, J. M., Vats, D., and Jones, G. L., “Assessing and Visualizing Simultaneous Simulation Error”, Journal of Computational and Graphical Statistics, 2020.

Examples

# Generating iid data
chain <- matrix(rnorm(3*1e3), nrow = 1e3, ncol = 3)
siid.obj <- Siid(chain)
plot(siid.obj)


dvats/SimTools documentation built on May 14, 2023, 1:28 p.m.