plotRMSE.regmodel function

RMSE plot for regression model

RMSE plot for regression model

Shows plot with root mean squared error values vs. number of components for PLS model.

## S3 method for class '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], ")"), ... )

Arguments

  • obj: a regression model (object of class regmodel)
  • ny: number of response variable to make the plot for (if y is multivariate)
  • type: type of the plot("b", "l" or "h")
  • labels: what to show as labels (vector or name, e.g. "names", "values", "indices")
  • xticks: vector with ticks for x-axis values
  • res: list with result objects
  • ylab: label for y-axis
  • ...: other plot parameters (see mdaplotg for details)
  • Maintainer: Sergey Kucheryavskiy
  • License: MIT + file LICENSE
  • Last published: 2024-08-19