plot_loadings: Loadings plot

Description Usage Arguments

View source: R/lipidome_comparison_pca.R

Description

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

Usage

1
2
3
4
5
6
7
8
plot_loadings(
  pca_object,
  colour = FALSE,
  top_loadings = 10,
  title = "Loadings plot",
  xlab = "Dim.1",
  ylab = "Dim.2"
)

Arguments

pca_object

Object produced by FactoMineR::PCA.

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 = "Loadings plot"

xlab

string. Title of x-axis. Default: "Dim.1"

ylab

string. Title of y-axis. Default: "Dim.2"


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