exprPCA: PCA plot for Grouped Samples

View source: R/Visualization_check.R

exprPCAR Documentation

PCA plot for Grouped Samples

Description

plot a pca for expression matrix

Usage

exprPCA(
  expr,
  group_list,
  palette = RColorBrewer::brewer.pal(3, "Set2")[1:2],
  filename = NA,
  main = "all samples - PCA",
  width = 3.5,
  height = 4,
  ...
)

Arguments

expr

a expression matrix

group_list

a character vector order by samples

palette

group palette

filename

file name you want to save plot

main

plot title

width

width of plot

height

height of plot

...

more parameters in fviz_pca_ind

Details

Use PCA to get PCA of grouped samples.

Value

a PCA plot or a file

Examples

exprPCA(expr,group_list)

xiayh17/RNAseqStat2 documentation built on May 27, 2023, 12:13 p.m.