Learn R Programming

ConsensusOPLS (version 1.1.0)

plotLoadings: Loading plot

Description

Plot of variable loadings in the optimal model.

Usage

plotLoadings(
  object,
  comp1 = "p_1",
  comp2 = "o_1",
  blockId = NULL,
  col = NULL,
  pch = NULL,
  ...
)

# S4 method for ConsensusOPLS plotLoadings( object, comp1 = "p_1", comp2 = "o_1", blockId = NULL, col = NULL, pch = NULL, ... )

Value

No return value, called for side effects.

Arguments

object

An object of class ConsensusOPLS.

comp1

Latent variable for X-axis. Default, the first predictive component, p_1.

comp2

Latent variable for Y-axis. Default, the first orthogonal component, o_1.

blockId

The positions or names of the blocks for the plot. Default, NULL, all.

col

A vector of color codes or names, one for each block. Default, NULL, 2 to length(blockId)+1.

pch

A vector of graphic symbols, one for each block. Default, NULL, 1 to length(blockId).

...

plot arguments.