if (FALSE) {
## Load data
data(sim2pop)
## Make spca
spca1 <- spca(sim2pop, type = 1, scannf = FALSE, plot.nb = FALSE)
spca1
plot(spca1)
## run tests (use more permutations in practice, e.g. 999)
tests <- spca_randtest(spca1, nperm = 49)
## check results
tests
plot(tests[[1]]) # global structures
}
Run the code above in your browser using DataLab