plot.O2pls {o2plsda}R Documentation

Score or loading plot for the O2PLS results

Description

Score or loading plot for the O2PLS results

Usage

## S3 method for class 'O2pls'
plot(
  x,
  type = "score",
  var = "Xjoint",
  group = NULL,
  ind = c(1, 2),
  color = NULL,
  top = 20,
  ellipse = TRUE,
  order = FALSE,
  pt.size = 3,
  label = TRUE,
  label.size = 4,
  repel = TRUE,
  rotation = FALSE,
  ...
)

Arguments

x

an O2pls object

type

score or loading

var

specify Xjoint

group

color used for score plot

ind

which components to be used for score plot or loading plot

color

color used for score or loading plot

top

the number of largest loading value to plot

ellipse

TRUE/FALSE

order

order by the value or not

pt.size

point size

label

plot label or not (TRUE/FALSE)

label.size

label size

repel

use ggrepel to show the label or not

rotation

flip the figure or not (TRUE/FALSE)

...

For consistency

Value

a ggplot2 object

Author(s)

Kai Guo

Examples

X <- matrix(rnorm(50),10,5)
Y <- matrix(rnorm(50),10,5)
fit <- o2pls(X,Y,2,1,1)
plot(fit, type="score")

[Package o2plsda version 0.0.18 Index]