Skip to contents

met.plot_PCA3DLoading visualizes which features are responsible for the patterns seen among the samples in principal component analysis.

Usage

met.plot_PCA3DLoading(
  mSetObj = NA,
  imgName = "PCA3DLoading",
  format = "json",
  inx1 = 1,
  inx2 = 2,
  inx3 = 3,
  export = F
)

Arguments

mSetObj

Input name of the created mSet object. Data container after principal component analysis (met.PCA.Anal).

imgName

(Character) Enter a name for the image file (if export = TRUE).

format

format.

inx1

(Numeric) Indicate the number of the principal component for the x-axis of the loading plot.

inx2

(Numeric) Indicate the number of the principal component for the y-axis of the loading plot.

inx3

(Numeric) Indicate the number of the principal component for the z-axis of the loading plot.

export

(Logical, TRUE or FALSE) Shall the plot be exported as file with the chosen format?

Value

The input mSet object with added 3D scatter plot. The plot can be retrieved from within R by executing met.print_PCA3DLoading(mSetObj$imgSet$pca.loading3d.plot).