Fanchart

The function plotFAN of the forvision package plots the fanchart for the given data from dataset.

Here’s a fanchart created by the function plotFAN for time series of id = “M350”:

# Load time series and forecast data 
library(forvision)
ts <- m3_monthly_ts
fc <- m3_monthly_fc_pis

# prepare appropriate time-based object timestamp columns for the data_ts and data_fs
library(zoo)
ts$timestamp_dbo <- as.yearmon(ts$timestamp, format = '%Y-%m')
fc$timestamp_dbo <- as.yearmon(fc$timestamp, '%Y-%m')

# plot a fan chart
plotFanChart(ts, fc,  "M350", "1993-09", "ARIMA")


To cite this website, please use the following reference:

Sai, C., Davydenko, A., & Shcherbakov, M. (date). The Forvision Project. Retrieved from https://forvis.github.io/

© 2020 Sai, C., Davydenko, A., & Shcherbakov, M. All Rights Reserved. Short sections of text, not exceed two paragraphs, may be quoted without explicit permission, provided that full acknowledgement is given.