Learn R Programming

exdqlm (version 0.4.0)

plot.exdqlmSynthesis: Plot Method for exdqlmSynthesis Objects

Description

Plot the pointwise posterior predictive interval produced by quantileSynthesis. The method is intentionally separate from quantileSynthesis() so the synthesis step remains a computation, while the returned object still has a standard plotting interface.

Usage

# S3 method for exdqlmSynthesis
plot(
  x,
  y = NULL,
  time = NULL,
  add = FALSE,
  interval = 0.95,
  show.median = TRUE,
  show.mean = FALSE,
  band.col = grDevices::adjustcolor("lightblue", alpha.f = 0.35),
  median.col = "blue",
  mean.col = "darkblue",
  y.col = "dark grey",
  border = NA,
  xlab = "time",
  ylab = "posterior predictive synthesis",
  main = NULL,
  xlim = NULL,
  ylim = NULL,
  ...
)

Arguments

x

An exdqlmSynthesis object.

y

Optional observed series to overlay.

time

Optional time vector for the synthesized summaries. If omitted, seq_len(T) is used, where T is the number of synthesized time points.

add

Logical; add the synthesis interval to an existing plot.

interval

Numeric in (0, 1) giving the plotted central interval. Currently 0.50 and 0.95 are supported from stored summaries.

show.median

Logical; draw the synthesized posterior median.

show.mean

Logical; draw the synthesized posterior mean.

band.col

Fill color for the predictive interval.

median.col

Color for the posterior median line.

mean.col

Color for the posterior mean line.

y.col

Color for the optional observed series.

border

Border color for the predictive interval polygon.

xlab, ylab, main

Graphical labels.

xlim, ylim

Optional axis limits.

...

Additional graphical arguments passed to the initial plot() call when add = FALSE.