Learn R Programming

specmine (version 1.0)

pca_analysis_dataset: PCA analysis (classical)

Description

Performs a classical PCA analysis over the dataset.

Usage

pca_analysis_dataset(dataset, scale = T, center = T, write.file = F, 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

Run this code
  ## Example of performing a classical PCA analysis
  data(cachexia)
  pca.results = pca_analysis_dataset(cachexia)

Run the code above in your browser using DataLab