A Zero-Code GUI Wrapper for the forecast Package Bringing Business Analytics to RKWard
rk.forecast bridges the gap between advanced econometric tools and practical Business Analytics. Designed with modern forecasting workflows in mind (aligning with leading business analytics textbooks), this plugin provides a seamless, point-and-click interface to generate time series predictions, evaluate business KPIs (like MAPE and RMSE), and plot publication-ready graphics using ggplot2—all without writing a single line of R code.
ts) objects by simply declaring the frequency (Monthly, Quarterly, etc.) and start dates through the GUI.forecast package engine. Auto-detect the best Error-Trend-Seasonality (ETS) models, or manually specify Holt-Winters (Additive/Multiplicative) methods.ggplot2 Output: Generates predictive plots with confidence intervals (80% and 95%). Customize themes, titles, and axis labels directly from the menu.ggplot objects back to the R workspace, or export plots to disk (PNG, JPEG, PDF, SVG) with precise pixel dimensions and DPI resolution.Analysis > Time Series menu.ggplot2 objects and safe saving mechanisms using RKWard's core graphical devices.You must have RKWard installed along with the following R packages. The plugin will automatically attempt to load them when required:
install.packages(c("forecast", "ggplot2"))
You can install this plugin directly from GitHub using remotes or devtools inside your RKWard console:
# Install the plugin
library("remotes")
# install_github("AlfCano/rk.forecast")
install.packages("rk.forecast", repos = c('https://alfcano.r-universe.dev', 'https://cloud.r-project.org'))
Once installed, restart RKWard to ensure the new menu entries and translations appear correctly.
This plugin adds three essential components under the Analysis > Time Series menu in RKWard:
The core tool for predicting data with trends and seasonality.
ets() function auto-detect the best parameters, or force specific Holt-Winters additive/multiplicative models. Set your forecast horizon (h).ggplot2 chart. Export the graphic in high-resolution, and save both the forecast object and the plot to your Global Environment.Create benchmark models to prove your advanced algorithms are working.
Extract business KPIs from any forecast object in your workspace.
ggplot2 visualizations of the evaluated model.To see the true power of rk.forecast in a Business Analytics context (such as the methodologies taught in Jaggia's Business Analytics textbook), let's predict airline ticket demand and prove our model's worth.
Open the R Console (bottom panel in RKWard) and paste this code to create a standard data frame mimicking a spreadsheet import:
demand_data <- data.frame(ticket_sales = as.numeric(AirPassengers))
Go to Analysis > Time Series > Exponential Smoothing (Holt-Winters).
demand_data as the Data Frame and ticket_sales as the Target. Set Frequency to Monthly (12), Start Year to 1949, and Start Period to 1.24 (two years).What to look for in the HTML Output:
ETS(M,A,M) model (Multiplicative error, Additive trend, Multiplicative seasonality).2.77%. This means your predictions are off by less than 3% on average!Can our complex model beat a simple, naive assumption? Let's create a baseline. Go to Analysis > Time Series > Baseline Models (Naive & Mean).
24, ensure "Save forecast object" is active, and hit Submit.
Notice how "blocky" and highly uncertain the baseline plot looks compared to our ETS model.
Now comes the "Communicating with Numbers" phase. Let's evaluate both models professionally. Go to Analysis > Time Series > Evaluate Accuracy (MAPE, RMSE).
naive_forecast) into the Model to Evaluate slot, choose the "Minimal" theme, and hit Submit. Look at the MAPE: ~9.9%.my_forecast) and hit Submit. Look at the MAPE: ~2.77%.Using the HTML reports generated by the plugin, you can now write a data-backed business conclusion:
"Visual analysis confirms an excellent fit for the multiplicative trend. While our traditional baseline strategy (Seasonal Naive) yielded a Mean Absolute Percentage Error (MAPE) of 9.9%, implementing advanced exponential smoothing (ETS) drastically reduced our error rate to just 2.77%. Therefore, the deployment of this statistical model is highly justified, as it reduces our inventory and sales uncertainty by over 7% compared to basic planning."
The graphical interface automatically adapts to your RKWard language settings. Currently supported languages:
Author: Alfonso Cano (@AlfCano)
Email: alfonso.cano@correo.buap.mx
This project is licensed under the GPL (>= 3) License.