plot.enpls.pred: Plot enpls.pred Object

Description Usage Arguments Details Author(s) See Also Examples

View source: R/plot.R

Description

This function plots enpls.pred object.

Usage

1
2
## S3 method for class 'enpls.pred'
plot(x, y.test, main = NULL, ...)

Arguments

x

An object of class enpls.pred.

y.test

Response vector for test.

main

plot title

...

Other graphical parameters to be passed on to ggplot.

Details

This function plots enpls.pred object.

Author(s)

Min-feng Zhu <wind2zhu@163.com>, Nan Xiao <road2stat@gmail.com>

See Also

See predict for make predictions on new data by fitted enpls.en object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(logS)
x = logS$x
y = logS$y
x.test = logS$x.test1
y.test = logS$y.test1

set.seed(42)
enpls.fit = enpls.en(x, y, MCtimes = 10)
y.pred = predict(enpls.fit, newx = x.test)
plot(y.pred, y.test)

wind22zhu/enpls1.2 documentation built on May 4, 2019, 6:31 a.m.