Learn R Programming

specmine (version 3.1.6)

pca_scoresplot3D: 3D PCA scores plot

Description

Shows a 3D PCA scores plot of three principal componets.

Usage

pca_scoresplot3D(dataset, pca.result, column.class, 
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

vector with the principal components to be plotted.

Examples

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

Run the code above in your browser using DataLab