Learn R Programming

textir (version 1.5.2)

plot.pls: pls plot

Description

Plot function for Partial Least Squares

Usage

## S3 method for class 'pls':
plot(x, K=NULL, xlab="response", ylab=NULL, ...)

Arguments

x
An output object from the pls function.
K
The number of pls directions to be used. Can be a vector. If K, plot fitted values for 1:fit$K directions.
xlab
The x-axis label.
ylab
The y-axis label; if null, will be set to `pls(k) fitted values' for each k.
...
Additional plot arguments

Value

  • A fabulous plot.

Details

Plots response versus fitted values for least-squares fit onto the K pls directions.

References

Taddy (2011), Inverse Regression for Analysis of Sentiment in Text. http://arxiv.org/abs/1012.2098

See Also

pls, we8there