Learn R Programming

mdatools (version 0.9.1)

plotVariance.pls: Variance plot for PLS

Description

Shows plot with variance values vs. number of components.

Usage

# S3 method for pls
plotVariance(obj, decomp = "xdecomp", variance = "expvar",
  type = "b", main = "X variance", xlab = "Components",
  ylab = "Explained variance, %", labels = "values", ...)

Arguments

obj

a PLS model (object of class pls)

decomp

which decomposition to use ('xdecomp' for x or 'ydecomp' for y)

variance

which variance to use ('expvar', 'cumexpvar)

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 for plot objects.

...

other plot parameters (see mdaplotg for details)

Details

See examples in help for pls function.