Shows plot with cumulative explained X variance vs. number of components.
# S3 method for pls
plotXCumVariance(obj, type = "b",
main = "X cumulative variance", xlab = "Components",
ylab = "Explained variance, %", ...)
a PLS model (object of class pls
)
type of the plot('b', 'l' or 'h')
main plot title
label for x axis
label for y axis
other plot parameters (see mdaplotg
for details)
See examples in help for pls
function.