plotPredictions.regmodel: Predictions plot for regression model

View source: R/regmodel.R

plotPredictions.regmodelR Documentation

Predictions plot for regression model

Description

Shows plot with predicted vs. reference (measured) y values for selected components.

Usage

## S3 method for class 'regmodel'
plotPredictions(
  obj,
  ncomp = obj$ncomp.selected,
  ny = 1,
  legend.position = "topleft",
  show.line = TRUE,
  res = obj$res,
  ...
)

Arguments

obj

a regression model (object of class regmodel)

ncomp

how many components to use (if NULL - user selected optimal value will be used)

ny

number of response variable to make the plot for (if y is multivariate)

legend.position

position of legend on the plot (if shown)

show.line

logical, show or not line fit for the plot points

res

list with result objects

...

other plot parameters (see mdaplotg for details)


mdatools documentation built on Sept. 11, 2024, 7:59 p.m.