pca_analysis_dataset: PCA analysis (classical)

Description Usage Arguments Value Examples

View source: R/pca.R

Description

Performs a classical PCA analysis over the dataset.

Usage

1
2
pca_analysis_dataset(dataset, scale = TRUE, center = TRUE, 
write.file = FALSE, file.out = "pca", ...)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

scale

boolean value indicating if the variables are going to be scaled or not.

center

booleam value indicating if the variables are going to be centered or not.

write.file

boolean value that indicates if the results from PCA analysis are going to be written on a file.

file.out

name of the file that will store the results.

...

additional parameters to ggplot function.

Value

object of class 'prcomp' with the results from the PCA analysis.

Examples

1
2
3
4
  ## Example of performing a classical PCA analysis
  library(specmine.datasets)
  data(cachexia)
  pca.results = pca_analysis_dataset(cachexia)

specmine documentation built on Sept. 21, 2021, 5:06 p.m.