Shows plot with RMSECV/RMSEC values vs. RMSECV for each component.
# S3 method for regmodel
plotRMSERatio(
obj,
ny = 1,
type = "b",
show.labels = TRUE,
labels = seq_len(obj$ncomp),
main = paste0("RMSECV/RMSEC ratio (", obj$res$cal$respnames[ny], ")"),
ylab = "RMSECV/RMSEC ratio",
xlab = "RMSECV",
...
)
a regression model (object of class regmodel
)
number of response variable to make the plot for (if y is multivariate)
type of the plot (use only "b" or "l")
logical, show or not labels for plot points
vector with point labels (by default number of components)
main plot title
label for y-axis
label for x-axis
other plot parameters (see mdaplot
for details)