plot.lsplsCv {lspls}R Documentation

Plot Method for Cross-Validations

Description

Plot method for "lsplsCv" objects. It plots the cross-validated (R)MSEP against the total number of components.

Usage

## S3 method for class 'lsplsCv':
plot(x, which = c("RMSEP", "MSEP"), ...)

Arguments

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.

Details

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.

Value

The function returns whatever the (last) underlying plot function returns.

Author(s)

Bjørn-Helge Mevik

See Also

lsplsCv, lspls

Examples

##FIXME

[Package lspls version 0.1-1 Index]