pca_plotter: Plots PC1 by PC2 using ggplot

Description Usage Arguments Value

View source: R/pca_functions_main.R

Description

Creates a PCA plot using ggplot2

Usage

1
2
3
4
5
6
7
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/basicOmics documentation built on Feb. 28, 2021, 11:03 p.m.