powered by
Displays how spectra are divided in windows
segment.windows( xblock = NULL, yblock = NULL, windows = 3, fade = 0.3, xlab = "Wavelength", ylab = "Absorbance", title = paste("Spectra divided in", windows, "segments", sep = " "), legend = NULL, grad = 10 )
Plot of spectra in which segments have a different background color.
A matrix containing one spectra for each observation.
A vector containing the concentration associated to each spectra in the xblock matrix.
Number of windows the spectra has to be divided in.
Opacity of the window.
Title of the x axis.
Title of the y axis.
Title of the plot.
Name of the substance which drives the gradient of spectra’s mapping.
Number of colors that are used to build the gradient.
data(beer) conc=unlist(beer[,1]) sp=beer[,2:ncol(beer)] names(sp)=convert.names.wl(1100,2250,2) segment.windows(sp,conc,windows=7,fade=0.25)
Run the code above in your browser using DataLab