pca_plotter: Plots PC1 by PC2 using ggplot

pca_plotterR Documentation

Plots PC1 by PC2 using ggplot

Description

Creates a PCA plot using ggplot2

Usage

pca_plotter(
  transformed_data,
  sample_map,
  leg_row_num = 3,
  gene_num = Inf,
  return_data = FALSE
)

Arguments

transformed_data

transformed (e.g., log, vst, rlog) expression data

sample_map

df of sample annotations

leg_row_num

how many rows the leg should be

gene_num

number of genes (ranked by variance) to use

return_data

whether to return the pca data

Value

ggplot object


lefeverde/lefutils documentation built on May 19, 2023, 4 p.m.