PlotPredictions: Plot true versus predicted output.

Description Usage Arguments Value Examples

View source: R/plot.R

Description

Plot true versus predicted output (response) made by Predict or CrossValidate.

Usage

1
2
3
4
5
6
7
8
PlotPredictions(
  y_pred,
  y,
  y_name = "y",
  y_units = "",
  title = c("Predict", "CrossValidate"),
  pch = 1
)

Arguments

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.

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

title

A character string for the name of the function generating the predictions (for an appropriate title): "Predict" from Predict or "CrossValidate" from CrossValidate; "" for no title.

pch

Plotting symbol for plot; default is open circle.

Value

No return value, generates plots.

Examples

1
2
3
PlotPredictions(borehole_cv, y, title = "CrossValidate")

PlotPredictions(borehole_pred$y_pred, borehole$y_true, title = "Predict")

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