global.rmse | R Documentation |
Plots in a single window the RMSE of each model.
global.rmse(
wpls = NULL,
col.cal = "blue",
col.cv = "red",
col.strip.background = "steelblue",
xlab = NULL,
ylab = NULL,
title = NULL
)
wpls, |
object obtained from cv.wpls. |
col.cal, |
color for the calibration line. |
col.cv, |
color for the cross-validation line. |
col.strip.background, |
color of the banner for each window. |
xlab, |
title of the x axis. |
ylab, |
title of the y axis. |
title, |
title of the plot. |
Plot of RMSE of each spectra region used to compute PLS.
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)
global.rmse(mywpls,col.cal='navy',
col.cv='red',
col.strip.background='orange',
xlab='Component',
ylab='RMSE')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.