Usage
"plotVariance"(obj, decomp = "xdecomp", variance = "expvar", type = "b", main = "X variance", xlab = "Components", ylab = "Explained variance, %", show.labels = F, show.legend = T, ...)
Arguments
obj
a PLS model (object of class pls
)
decomp
which decomposition to use ('xdecomp' for x or 'ydecomp' for y)
variance
which variance to use ('expvar', 'cumexpvar)
type
type of the plot('b', 'l' or 'h')
show.labels
logical, show or not labels for the plot elements
show.legend
logical, show or not legend for the plot
...
other plot parameters (see mdaplotg
for details)