# NOT RUN {
data(feems)
cube <- feemscale(
feemscatter(
feemcube(feems, FALSE)[(1:45)*4,(1:13)*4,],
rep(24, 4)), na.rm = TRUE
)
factors <- feemparafac(cube, nfac = 2, const = rep('nonneg', 3))
plot(factors, 'image')
plot(factors, 'line')
# }
Run the code above in your browser using DataLab