Learn R Programming

mdatools (version 0.7.0)

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

"plotXResiduals"(obj, ncomp = NULL, main = NULL, xlab = "T2", ylab = "Squared residual distance (Q)", show.labels = F, show.legend = T, ...)

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
show.labels
logical, show or not labels for the plot objects
show.legend
logical, show or not a legend on the plot
...
other plot parameters (see mdaplotg for details)

Details

See examples in help for pls function.