This function plots one or two loading vectors, by default with ggplot2.
# S3 method for 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"),
...
)
If use_ggplot2
is TRUE
a ggplot2 object. Else NULL.
An O2PLS fit, with class 'o2m'
character string. One of the following: 'Xjoint', 'Yjoint', 'gr_Xjoint', 'gr_Yjoint', 'Xorth' or 'Yorth'.
Integer. First component to be plotted.
NULL (default) or Integer. Second component to be plotted.
Deprecated. Logical. Default is TRUE
. If FALSE
, the usual plot device will be used.
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.
summary