Learn R Programming

mdatools (version 0.9.1)

plotXVariance.pls: Explained X variance plot for PLS

Description

Shows plot with explained X variance vs. number of components.

Usage

# S3 method for pls
plotXVariance(obj, type = "b", main = "X variance",
  xlab = "Components", ylab = "Explained variance, %", ...)

Arguments

obj

a PLS model (object of class pls)

type

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

main

main plot title

xlab

label for x axis

ylab

label for y axis

...

other plot parameters (see mdaplotg for details)

Details

See examples in help for pls function.