Shows plot with predicted vs. reference (measured) y values for selected components.
# S3 method for regmodel
plotPredictions(
obj,
ncomp = obj$ncomp.selected,
ny = 1,
legend.position = "topleft",
show.line = TRUE,
res = obj$res,
...
)
a regression model (object of class regmodel
)
how many components to use (if NULL - user selected optimal value will be used)
number of response variable to make the plot for (if y is multivariate)
position of legend on the plot (if shown)
logical, show or not line fit for the plot points
list with result objects
other plot parameters (see mdaplotg
for details)