Learn R Programming

specmine (version 3.1.6)

pca_pairs_plot: PCA pairs plot

Description

Shows a PCA pairs plot.

Usage

pca_pairs_plot(dataset, pca.result, column.class = NULL, 
pcas = c(1, 2, 3, 4, 5), ...)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

pca.result

prcomp object with the PCA results.

column.class

metadata's variable.

pcas

the principal components to be shown.

…

additional parameters to ggpairs function from GGally package.

Examples

Run this code
# NOT RUN {
  ## Example of a PCA pairs plot
  library(specmine.datasets)
  data(cachexia)
  pca.result = pca_analysis_dataset(cachexia)
  pca_pairs_plot(cachexia, pca.result, "Muscle.loss", pcas = c(1,2,3))
# }

Run the code above in your browser using DataLab