pca_pairs_plot: PCA pairs plot

Description Usage Arguments Examples

View source: R/pca.R

Description

Shows a PCA pairs plot.

Usage

1
2
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

1
2
3
4
5
  ## 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))

Example output

Registered S3 method overwritten by 'GGally':
  method from   
  +.gg   ggplot2
`stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
`stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
`stat_bin()` using `bins = 30`. Pick better value with `binwidth`.

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