powered by
Score or loading plot for the O2PLS results
# S3 method for 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, ... )
a ggplot2 object
an O2pls object
score or loading
specify Xjoint
color used for score plot
which components to be used for score plot or loading plot
color used for score or loading plot
the number of largest loading value to plot
TRUE/FALSE
order by the value or not
point size
plot label or not (TRUE/FALSE)
label size
use ggrepel to show the label or not
flip the figure or not (TRUE/FALSE)
For consistency
Kai Guo
X <- matrix(rnorm(50),10,5) Y <- matrix(rnorm(50),10,5) fit <- o2pls(X,Y,2,1,1) plot(fit, type="score")
Run the code above in your browser using DataLab