Shows plot with variance values vs. number of components.
# S3 method for pls
plotVariance(obj, decomp = "xdecomp", variance = "expvar",
type = "b", main = "X variance", xlab = "Components",
ylab = "Explained variance, %", labels = "values", ...)
a PLS model (object of class pls
)
which decomposition to use ('xdecomp' for x or 'ydecomp' for y)
which variance to use ('expvar', 'cumexpvar)
type of the plot('b', 'l' or 'h')
main plot title
label for x axis
label for y axis
what to show as labels for plot objects.
other plot parameters (see mdaplotg
for details)
See examples in help for pls
function.