plotWeights.pls: Weights plot for PLS

View source: R/pls.R

plotWeights.plsR Documentation

Weights plot for PLS

Description

Shows plot with weight values for selected components.

Usage

## S3 method for class 'pls'
plotWeights(
  obj,
  comp = 1,
  type = (if (nrow(obj$weights) < 20) "h" else "l"),
  show.axes = TRUE,
  show.legend = TRUE,
  ...
)

Arguments

obj

a PLS model (object of class pls)

comp

which components to show the plot for (one or vector with several values)

type

type of the plot

show.axes

logical, show or not axes lines crossing origin (0,0)

show.legend

logical, show or not a legend

...

other plot parameters (see mdaplotg for details)

Details

See examples in help for pls function.


mdatools documentation built on March 6, 2026, 5:08 p.m.