plot.o2m: Plot one or two loading vectors for class o2m

plot.o2mR Documentation

Plot one or two loading vectors for class o2m

Description

This function plots one or two loading vectors, by default with ggplot2.

Usage

## S3 method for class 'o2m'
plot(
  x,
  loading_name = c("Xjoint", "Yjoint", "gr_Xjoint", "gr_Yjoint", "Xorth", "Yorth"),
  i = 1,
  j = NULL,
  use_ggplot2 = TRUE,
  label = c("number", "colnames"),
  ...
)

Arguments

x

An O2PLS fit, with class 'o2m'

loading_name

character string. One of the following: 'Xjoint', 'Yjoint', 'gr_Xjoint', 'gr_Yjoint', 'Xorth' or 'Yorth'.

i

Integer. First component to be plotted.

j

NULL (default) or Integer. Second component to be plotted.

use_ggplot2

Deprecated. Logical. Default is TRUE. If FALSE, the usual plot device will be used.

label

Character, either 'number' or 'colnames'. The first option prints numbers, the second prints the colnames

...

Further arguments to geom_text, such as size, col, alpha, etc.

Value

If use_ggplot2 is TRUE a ggplot2 object. Else NULL.

See Also

summary.o2m


selbouhaddani/OmicsPLS documentation built on Aug. 25, 2022, 9:52 p.m.