psf_plot: Plot actual and forecasted values of an univariate time...

Description Usage Arguments Examples

Description

Takes an univariate time series and a vector with forecasted values.

Usage

1
psf_plot(data, predictions, cycle = 24, ...)

Arguments

data

Input univariate time series (in either time series (ts) or vector format). All values should be numeric.

predictions

A vector with already forecasted values.

cycle

The number of values that conform a cycle in the time series (e.g. 24 hours per day, 12 month per year, and so on). Only used when input data is not in time series (ts) format.

...

Additional graphical parameters given to plot function.

Examples

1
2
3
4
5
## Forecast the next 12 values of the univariate time series: nottem (package:datasets).
res <- psf(nottem, 12)

## Plot forecasted values from PSF.
psf_plot(nottem, res$predictions)

neerajdhanraj/PSF documentation built on May 23, 2019, 1:31 p.m.