Shows a plot with Q residuals vs. Hotelling T2 values for selected number of components.
# S3 method for pca
plotResiduals(obj, ncomp = NULL, norm = F, main = NULL,
xlab = NULL, ylab = NULL, show.labels = F, show.legend = T,
show.limits = T, xlim = NULL, ylim = NULL, lim.col = c("#333333",
"#333333"), lim.lwd = c(1, 1), lim.lty = c(2, 3), ...)
a PCA model (object of class pca
)
how many components to use (if NULL - user selected optimal value will be used)
logical, show normalized Q vs T2 (norm = T
) values or original ones (norm = F
)
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
limits for x-axis
limits for y-axis
vector with two values - line color for extreme and outlier borders
vector with two values - line width for extreme and outlier borders
vector with two values - line type for extreme and outlier borders
other plot parameters (see mdaplotg
for details)
See examples in help for pca
function.