View source: R/lipidome_comparison_pca.R
'plot_loadings' plots the loadings between the first two principal components.
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"
)
|
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" |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.