plo_obs: Plot of scores

View source: R/plo_obs.R

plo_obsR Documentation

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)

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.

Value

a ggplot2 object

Author(s)

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

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

morepls documentation built on June 8, 2025, 10:34 a.m.