Learn R Programming

morepls (version 0.1)

plo_obs: Plot of scores

Description

Plots the scores of the observations of a PLS regression.

Usage

plo_obs(object, comps = 1:2, col = "black", size = 1.5)

Value

a ggplot2 object

Arguments

object

an object of class mvr from pls package

comps

the components to use. Default is c(1,2).

col

the color of the points.

size

numerical value. The size of the points.

Author

Nicolas Robette

References

Martens, H., Næs, T. (1989) Multivariate calibration. Chichester: Wiley.

Tenenhaus, M. (1998) La Regression PLS. Theorie et Pratique. Editions TECHNIP, Paris.

Examples

Run this code
library(pls)
data(yarn)
pls <- mvr(density ~ NIR,
           ncomp = 5,
           data = yarn,
           validation = "CV",
           method = "oscorespls")
plo_obs(pls)

Run the code above in your browser using DataLab