plot_PCA: A function to plot the first two principal components of...

Description Usage Arguments Value

View source: R/utils.R

Description

This function will perform a principal component analysis, and it returns a ggplot object of the PCA plot.

Usage

1
plot_PCA(sgcount, df_design)

Arguments

sgcount

The input matrix contains read counts of sgRNAs for each sample.

df_design

The table contains a study design.

Value

A ggplot2 object contains a PCA plot for the input.

library(CB2) data(Evers_CRISPRn_RT112) plot_PCA(Evers_CRISPRn_RT112$count, Evers_CRISPRn_RT112$design)


CB2 documentation built on July 24, 2020, 5:08 p.m.