if (FALSE) {
data(dorrit)
## Plotting Emission spectra
oldpar <- par(mfrow=c(2,1))
matplot(t(dorrit[,,1]), type="l",
xlab="Wavelength/nm", ylab="Intensity",
main="Fluorescence emission spectra")
matplot(t(dorrit[,,5]), type="l",
xlab="Wavelength/nm", ylab="Intensity",
main="Fluorescence emission spectra")
par(oldpar)
## Plotting excitation spectra
oldpar <- par(mfrow=c(2,1))
matplot(t(dorrit[,1,]), type="l",
xlab="Wavelength/nm", ylab="Intensity",
main="Fluorescence excitation spectra")
matplot(t(dorrit[,30,]), type="l",
xlab="Wavelength/nm", ylab="Intensity",
main="Fluorescence excitation spectra")
par(oldpar)
persp(as.numeric(dimnames(dorrit)[[2]]),
as.numeric(dimnames(dorrit)[[3]]), dorrit[4,,],
xlab="Emission", ylab="Excitation", zlab="Intensity",
theta = 30, phi = 30, expand = 0.5, col = "lightblue",
ticktype="detailed")
pp <- Parafac(dorrit, ncomp=4, robust=TRUE)
plot(pp)
}
Run the code above in your browser using DataLab