osaplot | R Documentation |
This function produces a fan chart of sequential (one-step-ahead) forecasts
with dots for the observed values, using surveillance::fanplot()
, which
itself wraps fanplot::fan()
. A matplot()
of score
values at each time point is added below ("slicing").
osaplot(quantiles, probs, means, observed, scores, start = 1,
xlab = "Time", fan.args = list(), means.args = list(),
observed.args = list(), key.args = list(), ..., scores.args = list(),
legend.args = list(), heights = c(0.6, 0.4))
quantiles |
a time x |
probs |
numeric vector of probabilities with values between 0 and 1. |
means |
(optional) numeric vector of point forecasts at each time point. |
observed |
(optional) numeric vector of observed values. |
scores |
(optional) numeric vector (or matrix) of associated scores. |
start |
time index (x-coordinate) of the first prediction. |
xlab |
x-axis label. |
fan.args |
a list of graphical parameters for the |
means.args |
a list of graphical parameters for |
observed.args |
a list of graphical parameters for |
key.args |
if a list, a color key (in |
... |
further arguments are passed to |
scores.args |
a list of graphical parameters for |
legend.args |
if a list (of parameters for |
heights |
numeric vector of length 2 specifying the relative height of the two subplots. |
Sebastian Meyer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.