plotPCA: PCA plot Please note: scale will be performed autmaticly

View source: R/Common.R

plotPCAR Documentation

PCA plot Please note: scale will be performed autmaticly

Description

PCA plot Please note: scale will be performed autmaticly

Usage

plotPCA(
  df,
  group,
  palette = "npg",
  ellipse = FALSE,
  legend.title = "Group",
  main.title = "",
  alpha = 1,
  return.percentage = FALSE,
  label = NULL,
  plot3D = FALSE,
  show.sample.name = FALSE,
  point.size = 2
)

Arguments

df

Row: sample, Column: gene expression

palette

Default npg. The color palette to be used for coloring or filling by groups. Allowed values include "grey" for grey color palettes; brewer palettes e.g. "RdBu", "Blues", ...; or custom color palette e.g. c("blue", "red"); and scientific journal palettes from ggsci R package, e.g.: "npg", "aaas", "lancet", "jco", "ucscgb", "uchicago", "simpsons" and "rickandmorty".

ellipse

Whether to add elipse.

legend.title

legend.title

main.title

main title

return.percentage

If TRUE, reture PCA percentage instead of PCA lot

point.size

Default 2

Examples

plotPCA(df, group, "aaas")

ProfessionalFarmer/loonR documentation built on Oct. 9, 2024, 9:56 p.m.