Description Usage Arguments Value Examples
Applies a selected forecast model to a time series and plot the fitted series and the forecasted values along with the original series.
1 | gg_fit(x, test_size, model_name)
|
x |
A ts object. |
test_size |
Integer. The desired length of the test set object to be used to train the model and compare the forecasted with the observed values. |
model_name |
A string indicating the name of the forecast model. |
A ggplot2 object
1 | gg_fit(AirPassengers, 12, "snaive")
|
The binaries provided by 'x13binary' do not work on this
machine. To get more information, run:
x13binary::checkX13binary()
You can set 'X13_PATH' manually if you intend to use your own
binaries. See ?seasonal for details.
Warning messages:
1: Removed 156 rows containing missing values (geom_path).
2: Removed 12 rows containing missing values (geom_point).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.