plot.o2m {OmicsPLS} | R 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 |
Logical. Default is |
label |
Character, either 'number' or 'colnames'. The first option prints numbers, the second prints the colnames |
... |
Further arguments to |
Value
If use_ggplot2
is TRUE
a ggplot2 object. Else NULL.
See Also
[Package OmicsPLS version 2.0.2 Index]