global.rmse: Plots in a single window the RMSE of each model.

View source: R/global.rmse.R

global.rmseR Documentation

Plots in a single window the RMSE of each model.

Description

Plots in a single window the RMSE of each model.

Usage

global.rmse(
  wpls = NULL,
  col.cal = "blue",
  col.cv = "red",
  col.strip.background = "steelblue",
  xlab = NULL,
  ylab = NULL,
  title = NULL
)

Arguments

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.

Value

Plot of RMSE of each spectra region used to compute PLS.

Examples

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')

windows.pls documentation built on Aug. 10, 2023, 1:07 a.m.