Shows a plot with Q residuals vs. Hotelling T2 values for selected number of components.
# S3 method for pca
plotResiduals(obj, ncomp = NULL, main = NULL, xlab = "T2",
ylab = "Squared residual distance (Q)", show.labels = F,
show.legend = T, show.limits = T, cgroup = NULL, ...)
a PCA model (object of class pca
)
how many components to use (if NULL - user selected optimal value will be used)
main title for the plot
label for x axis
label for y axis
logical, show or not labels for the plot objects
logical, show or not a legend on the plot
logical, show or not lines with statistical limits for the residuals
a vector with numeric values or a factor for color grouping of plot points.
other plot parameters (see mdaplotg
for details)
See examples in help for pca
function.