plot_fit: Plotting the Fitted Values vs. Actuals

Description Usage Arguments Examples

View source: R/plots_functions.R

Description

Plotting the model's fitted values against the series

Usage

1
plot_fit(model)

Arguments

model

A trainLM object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(ny_gas)

head(ny_gas)

# Training a model
md <- trainLM(input = ny_gas,
              y = "y",
              trend = list(linear = TRUE),
              seasonal = "month",
              lags = c(1, 12))

# plot fitted values
plot_fit(md)

RamiKrispin/forecastLM documentation built on April 4, 2020, 1:48 a.m.