powered by
Plots R2 of calibration and cross-validation of a single nindow.
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 )
Plot of R2 of the region requested by the user.
object obtained from cv.wpls.
name of the Window the user wants to plot.
shape of the point of the calibration line.
shape of the point of the cross-validation line.
width of the line.
size of the points of calibration and cross-validation.
color for the calibration line.
color for the cross-validation line.
title of the x axis.
title of the y axis.
title of the plot.
displays legend and its name.
position of the legend on the x axis, ranges from 0 to 1.
position of the legend on the y axis, ranges from 0 to 1.
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')
Run the code above in your browser using DataLab