plot.cv.enspls {enpls}R Documentation

Plot cv.enspls object

Description

Plot cv.enspls object

Usage

## S3 method for class 'cv.enspls'
plot(x, xlim = NULL, ylim = NULL, alpha = 0.8,
  main = NULL, ...)

Arguments

x

An object of class cv.enspls.

xlim

x Vector of length 2 - x axis limits of the plot.

ylim

y Vector of length 2 - y axis limits of the plot.

alpha

An alpha transparency value for points, a real number in (0, 1].

main

Plot title, not used currently.

...

Additional graphical parameters, not used currently.

Author(s)

Nan Xiao <https://nanx.me>

See Also

See cv.enspls for cross-validation of ensemble sparse partial least squares regression models.

Examples

# This example takes one minute to run
## Not run: 
data("logd1k")
x <- logd1k$x
y <- logd1k$y

set.seed(42)
cvfit <- cv.enspls(x, y, reptimes = 10)
plot(cvfit)

## End(Not run)

[Package enpls version 6.1 Index]