Create horizon plots time series in R via horizon-timeseries-chart.

Installation

Install from GitHub with:

# install.packages("remotes")
remotes::install_github("JohnCoene/horizon")

Example

library(horizon)

horizon(tsdata, attrs(x = dates, y = value, group = grp))
arima 1
arima 2
autoregressive
autoregressive moving average
moving average
2017AprJulOct2018AprJulOct2019AprJul