pca_scoresplot3D_rgl: 3D PCA scores plot (interactive)

Description Usage Arguments Examples

View source: R/pca.R

Description

Shows a interactive 3D PCA scores plot of three principal components.

Usage

1
2
pca_scoresplot3D_rgl(dataset, pca.result, column.class, 
pcas = c(1, 2, 3), size = 1, labels = FALSE)

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.

size

parameter of plot3d from rgl package.

labels

boolean value indicating if the samples' labels will be shown.

Examples

1
2
3
4
5
6
7
  ### Example of a 3D PCA scores plot
  library(specmine.datasets)
  data(cachexia)
  pca.result = pca_analysis_dataset(cachexia)
  pca_scoresplot3D_rgl(cachexia, pca.result, "Muscle.loss", 
    		       pcas = c(1,2,3), labels = TRUE)
  

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