dynamichazard (version 0.5.2)

plot.PF_clouds: Plot of Clouds From a PF_clouds Object

Description

Plots mean curve along with quantiles through time for the forward, backward or smoothed clouds.

Usage

# S3 method for PF_clouds
plot(x, y, type = c("smoothed_clouds", "forward_clouds",
  "backward_clouds"), ylim, add = FALSE, qlvls = c(0.05, 0.5, 0.95),
  pch = 4, lty = 1, ..., cov_index)

Arguments

x

an object of class PF_clouds.

y

unused.

type

parameter to specify which cloud to plot.

ylim

ylim passed to matplot.

add

TRUE if a new plot should not be made.

qlvls

vector of quantile levels to be plotted.

pch

pch argument for the quantile points.

lty

lty argument for the mean curves.

...

unused.

cov_index

indices of the state vector to plot. All are plotted if this argument is omitted.

Value

List with quantile levels and mean curve.