PCA_plot_3d: Principal component analysis 3D plot

View source: R/fct_04_pca.R

PCA_plot_3dR Documentation

Principal component analysis 3D plot

Description

Draw a 3D PCA plot with designated PCA components on axis

Usage

PCA_plot_3d(
  data,
  sample_info,
  PCAx = 1,
  PCAy = 2,
  PCAz = 3,
  selected_color = "Names",
  selected_shape = "Names",
  plots_color_select
)

Arguments

data

Matrix of gene data that has been through pre_process()

sample_info

Matrix of sample information from experiment design file

PCAx

Integer designating the PC to be plotted on the x axis

PCAy

Integer designating the PC to be plotted on the y axis

PCAz

Integer designating the PC to be plotted on the z axis

selected_color

String designating factor to color points by. Should be one of the design factors from the design file or "Names" as default which automatically detects groups from gene data file

selected_shape

String designating factor to shape points by. Should be one of the design factors from the design file or "Names" as default which automatically detects groups from gene data file

plots_color_select

Vector of colors for plots

Value

Formatted PCA plot

See Also

PCA_plot()

Other PCA functions: MDS_plot(), PCA_Scree(), PCA_biplot(), PCA_plot(), PCAtools_eigencorplot(), pc_factor_correlation(), t_SNE_plot()


espors/idepGolem documentation built on April 23, 2024, 1:11 p.m.