plot_pca_result: Plot PCA.

View source: R/pca-plot.R

plot_pca_resultR Documentation

Plot PCA.

Description

Plot PCA.

Usage

plot_pca_result(
  pca_result,
  pheno,
  batch_name,
  classification_name,
  pc_x = 1,
  pc_y = 2,
  batch_label = "Batch",
  classification_label = "Classification",
  density_lwd = 0.6,
  plot_title = "PCA",
  plot_subtitle = "PCA subtitle"
)

Arguments

pca_result

An object of pca_result class.

pheno

the data.frame of phenotype.

batch_name

the column name of batch in the phenotype data.frame.

classification_name

the column name of classification in the phenotype data.frame.

pc_x

an integer of PC on x axis. Default to 1.

pc_y

an integer of PC on y axis. Default to 2.

batch_label

a character describe the ggplot2 label for batch. Default to "Batch".

classification_label

a character describe the ggplot2 label for classification. Default to "Classification".

Details

Inspired by PLSDAbatch package.

Value

A ggplot object.


markgene/yamatClassifier documentation built on Oct. 14, 2024, 2:36 a.m.