View source: R/map.best.window.R
map.best.window | R Documentation |
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
)
wpls, |
object obtained from cv.wpls. |
fade, |
opacity of the window. |
col.window, |
color of the window that highlights the region. |
xlab, |
title of the x axis. |
ylab |
title of the y axis. |
title, |
title of the plot. |
legend, |
description description |
Plot of the spectra with a window that highlights the region with the lowest cross-validation error.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.