pca_loading: Plotting PCA Loading Plot

Description Usage Arguments Value

View source: R/pca_loading.R

Description

Plotting PCA Loading Plot

Usage

1
pca_loading(pca_data, PCs = 1:4, label = NULL, title = NULL)

Arguments

pca_data

the PCA model output of prcomp()

PCs

vector of Principal Components to consider

label

vector of compounds that should be labelled on the score plot; to label all compounds (or bins), set label = 'all'

title

string; title of loading plot

Value

list of: p ggplot object with generated plot collected_data all the data used to plot pca data using ggplot2. can use collected_data for further customization using ggplot


schyen/somefxns documentation built on Aug. 6, 2019, 2:26 p.m.