plot.spatpca: Display the cross-validation results

Description Usage Arguments See Also Examples

View source: R/SpatPCA.R

Description

Display the M-fold cross-validation results

Usage

1
2
## S3 method for class 'spatpca'
plot(x, ...)

Arguments

x

An spatpca class object for plot method

...

Not used directly

See Also

spatpca

Examples

1
2
3
4
5
6
x_1D <- as.matrix(seq(-5, 5, length = 10))
Phi_1D <- exp(-x_1D^2) / norm(exp(-x_1D^2), "F")
set.seed(1234)
Y_1D <- rnorm(n = 100, sd = 3) %*% t(Phi_1D) + matrix(rnorm(n = 100 * 10), 100, 10)
cv_1D <- spatpca(x = x_1D, Y = Y_1D, num_cores = 2)
plot(cv_1D)

SpatPCA documentation built on Jan. 31, 2021, 5:05 p.m.