PlotResiduals: Plot residuals versus each input variable.

Description Usage Arguments Value Examples

View source: R/plot.R

Description

Plot residuals versus each input variable.

Usage

1
2
3
4
5
6
7
8
9
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

1
PlotResiduals(x, borehole_cv, y)

GaSP documentation built on June 7, 2021, 5:08 p.m.