plotVariance.pls {mdatools} | R Documentation |
Variance plot for PLS
Description
Shows plot with variance values vs. number of components.
Usage
## S3 method for class 'pls'
plotVariance(
obj,
decomp = "xdecomp",
variance = "expvar",
type = "b",
labels = "values",
res = obj$res,
ylab = "Explained variance, %",
...
)
Arguments
obj |
a PLS model (object of class |
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") |
labels |
what to show as labels for plot objects. |
res |
list with result objects to show the plot for (by defaul, model results are used) |
ylab |
label for y-axis |
... |
other plot parameters (see |
Details
See examples in help for pls
function.
[Package mdatools version 0.14.1 Index]