rmse.single.window {windows.pls}R Documentation

Plots RMSE of calibration and cross-validation of a single wnindow.

Description

Plots RMSE of calibration and cross-validation of a single wnindow.

Usage

rmse.single.window(
  wpls = NULL,
  condition = "Complete",
  shape.cal = 19,
  shape.cv = 19,
  width = 1,
  size = 2,
  col.cal = "blue",
  col.cv = "red",
  xaxis.title = "Component",
  yaxis.title = "RMSE",
  title = paste("Plot of RMSE for the", condition, "model"),
  legend.name = NULL,
  x.legend = 0.1,
  y.legend = 0.2
)

Arguments

wpls

object obtained from cv.wpls.

condition

name of the Window the user wants to plot.

shape.cal

shape of the point of the calibration line.

shape.cv

shape of the point of the cross-validation line.

width

width of the line.

size

size of the points of calibration and cross-validation.

col.cal

color for the calibration line.

col.cv

color for the cross-validation line.

xaxis.title

title of the x axis.

yaxis.title

title of the y axis.

title

title of the plot.

legend.name

displays legend and its name.

x.legend

position of the legend on the x axis, ranges from 0 to 1.

y.legend

position of the legend on the y axis, ranges from 0 to 1.

Value

Plot of RMSE of the region requested by the user.

Examples

data(beer)
conc=unlist(beer[,1])
sp=beer[,2:ncol(beer)]
names(sp)=convert.names.wl(1100,2250,2)
mywpls=cv.wpls(sp, conc,mode='wpls', windows = 5)
rmse.single.window(mywpls,'Window2')

[Package windows.pls version 0.1.0 Index]