plotXResiduals.plsres: X residuals plot for PLS results

View source: R/plsres.R

plotXResiduals.plsresR Documentation

X residuals plot for PLS results

Description

Shows a plot with Q residuals vs. Hotelling T2 values for PLS decomposition of x data.

Usage

## S3 method for class 'plsres'
plotXResiduals(
  obj,
  ncomp = obj$ncomp.selected,
  norm = TRUE,
  log = FALSE,
  main = sprintf("X-distances (ncomp = %d)", ncomp),
  ...
)

Arguments

obj

PLS results (object of class plsres)

ncomp

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

norm

logical, normalize distance values or not (see details)

log

logical, apply log tranformation to the distances or not (see details)

main

main title for the plot

...

other plot parameters (see mdaplot for details)

Details

See examples in help for plsres function.


svkucheryavski/mdatools documentation built on Aug. 25, 2023, 12:27 p.m.