powered by
Plots RMSE of calibration and cross-validation of a single wnindow.
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 )
Plot of RMSE 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=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')
Run the code above in your browser using DataLab