Learn R Programming

textir (version 1.1)

plot.pls: pls plot

Description

Plot function for Partial Least Squares

Usage

## S3 method for class 'pls':
plot(x, K=NULL, y=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.
y
Optional argument for the response to be plotted against (if, e.g., you wish to plot against unnormalized response).
...
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