powered by
Plots spectra highlighting windows with the best performance.
map.best.window( wpls = NULL, fade = 0.7, col.window = "steelblue", xlab = "Wavelengths", ylab = "Absorbance", title = NULL, legend = NULL )
Plot of the spectra with a window that highlights the region with the lowest cross-validation error.
object obtained from cv.wpls.
opacity of the window.
color of the window that highlights the region.
title of the x axis.
title of the y axis.
title of the plot.
description description
data(beer) conc=beer[,1] sp=beer[,2:ncol(beer)] names(sp)=convert.names.wl(1100,2250,2) conc=unlist(conc) mywpls=cv.wpls(sp, conc,mode='wpls', windows = 5) map.best.window(mywpls)
Run the code above in your browser using DataLab