| r2.single.window {windows.pls} | R Documentation | 
Plots R2 of calibration and cross-validation of a single nindow.
Description
Plots R2 of calibration and cross-validation of a single nindow.
Usage
r2.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 = expression(R^2),
  title = paste("Plot of R2 for the", condition, "model"),
  legend.name = NULL,
  x.legend = 0.9,
  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 R2 of the region requested by the user.
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)
r2.single.window(mywpls,'Window2')
[Package windows.pls version 0.1.0 Index]