Learn R Programming

mdatools (version 0.9.1)

plotRMSE.pls: RMSE plot for PLS

Description

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

Usage

# S3 method for pls
plotRMSE(obj, ny = 1, type = "b", main = "RMSE",
  xlab = "Components", ylab = NULL, labels = "values", ...)

Arguments

obj

a PLS model (object of class pls)

ny

number of response variable to make the plot for (if y is multivariate)

type

type of the plot('b', 'l' or 'h')

main

main plot title

xlab

label for x axis

ylab

label for y axis

labels

what to show as labels (if this option is on)

...

other plot parameters (see mdaplotg for details)

Details

See examples in help for pls function.