Shows plot with explained X variance vs. number of components.
# S3 method for pls
plotXVariance(obj, type = "b", main = "X 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.