Learn R Programming

specmine (version 1.0)

pca_biplot3D: 3D PCA biplot (interactive)

Description

Shows a interactive 3D PCA biplot.

Usage

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

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 three principal components.

Examples

Run this code
  ## Example of a 3D PCA biplot
  data(cachexia)
  pca.result = pca_analysis_dataset(cachexia)
  pca_biplot3D(cachexia, pca.result, "Muscle.loss", pcas = c(1,2,3))

Run the code above in your browser using DataLab