indPCA3D: indPCA3D()

View source: R/07_Grouping.R

indPCA3DR Documentation

indPCA3D()

Description

Plots the coordinate of the samples on a PCA plot in 3D. The colors used for the plotting will correspond to the main_factor of the romics_object. The axis to be plotted can be chosen. The PCA results are calculated using the function romicsPCA (see the documentation of this function for more details).

Usage

indPCA3D(romics_object, Xcomp = 1, Ycomp = 2, Zcomp = 3, ...)

Arguments

romics_object

has to be a log transformed romics_object created using romicsCreateObject() and transformed using the function log2transform() or log10transform()

Xcomp

numerical/double. Indicate the cp to plot on the X axis

Ycomp

numerical/double. Indicate the cp to plot on the Y axis

Zcomp

numerical/double. Indicate the cp to plot on the Z axis

...

further arguments passed to or from other methods

Details

This function will plot the results of a PCA calculated on the romics_object data layer using the function romicsPCA() (see documentation for more details).

Value

Returns a 3D plot generated with the plot3D::scatter3D() function.

Author(s)

Geremy Clair


PNNL-Comp-Mass-Spec/RomicsProcessor documentation built on March 18, 2023, 5:14 a.m.