plot3PCA-methods: Ploting PCA in a 3D space

Description Usage Arguments Value See Also

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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")


rexposome documentation built on March 13, 2021, 2:01 a.m.