plot3PCA-methods: Ploting PCA in a 3D space

plot3PCAR Documentation

Ploting PCA in a 3D space

Description

Methdo to draw a plot for samples using three PC contained in an ExposomePCA

Usage

plot3PCA(
  object,
  cmpX,
  cmpY,
  cmpZ,
  phenotype,
  main,
  angle = 35,
  pch = 16,
  legend = TRUE,
  plines = TRUE
)

Arguments

object

An onbject of class ExposomePCA

cmpX

Component to be placed at X axis

cmpY

Component to be placed at Y axis

cmpZ

Component to be placed at Z axis

phenotype

Used to color samples by phentoype

main

Title for the plot

angle

(default 35) angle between x and y axis.

pch

(default 16) plotting "character", i.e. symbol to use.

legend

(default TRUE) If TRUE shows the legend.

plines

(default TRUE) If TRUE it draws the lines from each dot to the base plane.

Value

A list with different graphics option from scatterplot3d.

See Also

pca to compite PCA on an ExposomeSet, plotPCA to plot the PCA, ExposomePCA as main class data("exposome") epca <- pca(expo[3:7, 1:100]) plot3PCA(epca, cmpX = 1, cmpY = 2, cmpZ = 3, phenotype = "sex")


isglobal-brge/rexposome documentation built on Feb. 4, 2023, 12:35 p.m.