do_pca: Do PCA analysis

View source: R/do_pca.R

do_pcaR Documentation

Do PCA analysis

Description

Do a quick PCA analysis.

Usage

do_pca(
  lipid_data,
  observations = c("all", "samples"),
  normalization = c("raw", "tot_area"),
  num_pc = 5,
  scaling = c("none", "uv", "pareto"),
  transformation = c("none", "log10")
)

Arguments

lipid_data

tibble in tidy format

observations

which observations to show

normalization

what normalization to use, none (raw data) or total area normalization

num_pc

number of prinicpal components to calculate (default is 5)

scaling

how to scale the data

transformation

what transformation to use

Value

a list with scores, loadings and explained variance

Author(s)

Rico Derks


ricoderks/lipidomics documentation built on Nov. 10, 2024, 2:30 a.m.