View source: R/lipidome_comparison_plsDA.R
'plot_pls_scores' plots the loadings between the first two principal components.
1 2 3 4 5 6 7 8 | plot_pls_scores(
pls_da_obj,
colour = TRUE,
top_loadings = 10,
title = "PLS-DA",
xlab = "PLS-DA 1",
ylab = "PLS-DA 2"
)
|
pls_da_obj |
Object produced by MixOmics::splsda or MixOmics::plsda. |
colour |
logical. TRUE ... color scale by PC1. FALSE (default) ... all black. |
top_loadings |
integer. Number of loadings to label (the top n loadings of both PCs are labelled). |
title |
string. Main title of the plot. Default = "PLS-DA" |
xlab |
string. Title of x-axis. Default: "PLS-DA 1" |
ylab |
string. Title of y-axis. Default: "PLS-DA 2" |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.