Usage
predplot(object, ...)
## S3 method for class 'default':
predplot(object, \dots)
## S3 method for class 'mvr':
predplot(object, ncomp = object$ncomp, which, newdata, nCols,
nRows, xlab = "measured", ylab = "predicted",
\dots, font.main = 1, cex.main = 1.1)
predplotXy(x, y, line = FALSE, main = "Prediction plot",
xlab = "measured response", ylab = "predicted response",
line.col = par("col"), line.lty = NULL, line.lwd = NULL, ...)
Arguments
ncomp
integer vector. The model sizes (numbers of components)
to use for prediction.
which
character vector. Which types of predictions to plot.
Should be a subset of c("train", "validation", "test")
. If not
specified, plot.mvr
selects test set predictions if
newdata
is supplied, otherwise cr
newdata
data frame. New data to predict.
nCols, nRows
integer. The number of coloumns and rows the
plots will be laid out in. If not specified, plot.mvr
tries
to be intelligent.
xlab,ylab
titles for $x$ and $y$ axes. Typically
character strings, but can be expressions or lists. See
title
for details. font.main
font to use for main title. See par
for details. cex.main
numeric. The magnification to be used for main titles
relative to the current size.
x
numeric vector. The observed response values.
y
numeric vector. The predicted response values.
line
logical. Whether a target line should be drawn.
main
character. Main title of plot.
line.col, line.lty, line.lwd
character or numeric. The
col
, lty
and lwd
parametres for the target
line. See par
for details. ...
further arguments sent to underlying plot functions.