Last chance! 50% off unlimited learning
Sale ends in
Plot the factors of a fitted PARAFAC model as functions of emission and excitation wavelengths.
# S3 method for feemparafac
plot(x, type = c("image", "lines"), ...)
An object returned by feemparafac
.
Given a fitted PARAFAC model:
With
"image"
Plot the factors (“loadings”) as a series of false-colour
images of outer products
"lines"
Plot the factors
More plot kinds may be added in the future.
A lattice plot object. Its print
or plot
method
will draw the plot on an appropriate plotting device.
The function provides sane defaults for lattice options such as
xlab
, ylab
, as.table
, auto.key
,
type
, cuts
, col.regions
, but they can be
overridden.
# 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