plotResiduals.regres {mdatools}R Documentation

Residuals plot for regression results

Description

Shows plot with Y residuals (difference between predicted and reference values) for selected response variable and complexity (number of components).

Usage

## S3 method for class 'regres'
plotResiduals(
  obj,
  ny = 1,
  ncomp = obj$ncomp.selected,
  show.lines = c(NA, 0),
  show.plot = TRUE,
  ...
)

Arguments

obj

regression results (object of class regres)

ny

number of predictor to show the plot for (if y is multivariate)

ncomp

complexity of model (e.g. number of components) to show the plot for

show.lines

allows to show the horisontal line at y = 0

show.plot

logical, show plot or just return plot data

...

other plot parameters (see mdaplot for details)


[Package mdatools version 0.14.1 Index]