plotRMSE.regmodel: RMSE plot for regression model

View source: R/regmodel.R

plotRMSE.regmodelR Documentation

RMSE plot for regression model

Description

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

Usage

## 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)


mdatools documentation built on Sept. 11, 2024, 7:59 p.m.