plot_pls_scores: PLS-DA scores plot

Description Usage Arguments

View source: R/lipidome_comparison_plsDA.R

Description

'plot_pls_scores' plots the loadings between the first two principal components.

Usage

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"
)

Arguments

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"


lisaschneider0509/lipidomeComparisonR documentation built on Aug. 12, 2020, 12:52 a.m.