Learn R Programming

mdatools (version 0.9.1)

plotXResiduals.pls: X residuals plot for PLS

Description

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

Usage

# S3 method for pls
plotXResiduals(obj, ncomp = NULL, main = NULL, xlab = "T2",
  ylab = "Squared residual distance (Q)", ...)

Arguments

obj

a PLS model (object of class pls)

ncomp

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

main

main title for the plot

xlab

label for x axis

ylab

label for y axis

...

other plot parameters (see mdaplotg for details)

Details

See examples in help for pls function.