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

Description Usage Arguments Value See Also

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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

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


OmicsPLS documentation built on May 19, 2021, 5:08 p.m.