plot.lsplsCv {lspls} | R Documentation |
Plot method for "lsplsCv"
objects. It plots the
cross-validated (R)MSEP against the total number of components.
## S3 method for class 'lsplsCv': plot(x, which = c("RMSEP", "MSEP"), ...)
x |
object of class "lsplsCv" . Object to be plotted.
Typically the output from lsplsCv . |
which |
character string. Which measure to plot. |
... |
Further arguments, sent to the underlying plot function. |
The plot
method generates a plot of the cross-validated (R)MSEP
values for all combinations of number of components. The
values are plotted against the total number of components. Each point
is labelled with the combination of number of components. E.g., for
a model with three PLS matrices, 132 means one
component from the first matrix, three from the second and two from
the third.
Also, the lowest (R)MSEP values for each total number of components are joined by a line.
The function returns whatever the (last) underlying plot function returns.
Bjørn-Helge Mevik
##FIXME