plot_count_distribution: A function to plot read count distribution.

View source: R/utils.R

plot_count_distributionR Documentation

A function to plot read count distribution.

Description

A function to plot read count distribution.

Usage

plot_count_distribution(sgcount, df_design, add_dots = FALSE)

Arguments

sgcount

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

df_design

The table contains a study design.

add_dots

The function will display dots of sgRNA counts if it is set to 'TRUE'.

Value

A ggplot2 object contains a read count distribution plot for 'sgcount'.

Examples

library(CB2)
data(Evers_CRISPRn_RT112)
cpm <- get_CPM(Evers_CRISPRn_RT112$count)
plot_count_distribution(cpm, Evers_CRISPRn_RT112$design)


CB2 documentation built on Nov. 5, 2025, 6:49 p.m.