plot_res: Plotting the residuals

Description Usage Arguments Examples

View source: R/plots_functions.R

Description

Plotting the residuals

Usage

1
plot_res(model, na.rm = FALSE, margin = 0.04)

Arguments

model

A trainLM object

na.rm

A boolean, if TRUE will ignore missing values, by default set to FALSE

margin

A numeric, define the margin space between the subplot components

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))

# create a residuals plot
plot_res(md)

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