prepare_plot_data: Prepare PCA plot data

View source: R/pca-plot.R

prepare_plot_dataR Documentation

Prepare PCA plot data

Description

Prepare PCA plot data

Usage

prepare_plot_data(
  projection,
  pheno,
  batch_name,
  classification_name,
  pc_x_name = "PC1",
  pc_y_name = "PC2"
)

Arguments

projection

A matrix pf PCA projections stored in projected attribute of pca_result object.

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_name

column name for PC on X axis. Default to "PC1".

pc_xyname

column name for PC on Y axis. Default to "PC2".

Value

A data.frame has four columns at least: pc_x, pc_y, batch, classification.


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