Shows plot with root mean squared error values vs. number of components for PLS model.
# S3 method for regmodel
plotRMSE(
obj,
ny = 1,
type = "b",
labels = "values",
xticks = seq_len(obj$ncomp),
res = obj$res,
ylab = paste0("RMSE (", obj$res$cal$respnames[ny], ")"),
...
)
a regression model (object of class regmodel
)
number of response variable to make the plot for (if y is multivariate)
type of the plot("b", "l" or "h")
what to show as labels (vector or name, e.g. "names", "values", "indices")
vector with ticks for x-axis values
list with result objects
label for y-axis
other plot parameters (see mdaplotg
for details)