PlotResiduals: Plot residuals versus each input variable.

View source: R/plot.R

PlotResidualsR Documentation

Plot residuals versus each input variable.

Description

Plot residuals versus each input variable.

Usage

PlotResiduals(
  x,
  y_pred,
  y,
  x_units = NULL,
  y_name = "y",
  y_units = "",
  pch = 1
)

Arguments

x

A data frame with number of rows equal to the number of rows in y_pred containing the input (explanatory) variables.

y_pred

A data frame of predicted output values made by Predict or CrossValidate.

y

A vector of length equal to the number of rows in y_pred containing the true output values.

x_units

An optional vector of character strings containing the units of the input variables in x (for labels).

y_name

An optional character string containing the output variable name (for labels).

y_units

An optional character string constaining the units of the output variable (for labels).

pch

Plotting symbol for plot; default is open circle.

Value

No return value, generates plots.

Examples


PlotResiduals(x, borehole_cv, y)

GaSP documentation built on June 27, 2024, 5:11 p.m.