plot.enpls.ad: Plot enpls.ad object

Description Usage Arguments Author(s) See Also Examples

Description

Plot enpls.ad object

Usage

1
2
3
## S3 method for class 'enpls.ad'
plot(x, type = c("static", "interactive"),
  main = NULL, ...)

Arguments

x

An object of class enpls.ad.

type

Plot type. Can be "static" or "interactive".

main

Plot title, not used currently.

...

Additional graphical parameters, not used currently.

Author(s)

Nan Xiao <https://nanx.me>

See Also

See enpls.ad for model applicability domain evaluation with ensemble partial least squares regressions.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
data("alkanes")
x <- alkanes$x
y <- alkanes$y

# training set
x.tr <- x[1:100, ]
y.tr <- y[1:100]

# two test sets
x.te <- list(
  "test.1" = x[101:150, ],
  "test.2" = x[151:207, ]
)
y.te <- list(
  "test.1" = y[101:150],
  "test.2" = y[151:207]
)

set.seed(42)
ad <- enpls.ad(
  x.tr, y.tr, x.te, y.te,
  space = "variable", method = "mc",
  ratio = 0.9, reptimes = 50
)
plot(ad)
# the interactive plot requires a HTML viewer
## Not run: 
plot(ad, type = "interactive")

## End(Not run)

enpls documentation built on May 18, 2019, 9:02 a.m.