Shows plot with explained X variance vs. number of components.
# S3 method for plsres
plotVariance(obj, decomp = "xdecomp", variance = "expvar", ...)PLS results (object of class plsres)
which dcomposition to use ("xdecomp" or "ydecomp")
which variance to use ("expvar", "cumexpvar")
other plot parameters (see mdaplot for details)
See examples in help for plsres function.