View source: R/plotting_functions.R
plot_grna_count_distributions | R Documentation |
plot_grna_count_distributions()
plots the empirical UMI count distribution of one or more gRNAs. plot_grna_count_distributions()
can be called on a sceptre_object
at any point in the pipeline after import_data()
.
plot_grna_count_distributions(
sceptre_object,
n_grnas_to_plot = 4L,
grnas_to_plot = NULL,
threshold = NULL
)
sceptre_object |
a |
n_grnas_to_plot |
(optional; default |
grnas_to_plot |
(optional; default |
threshold |
(optional; default |
The x-axis is a piecewise linear-log scale, with bins of size 1 going from gRNA counts of 0 up to max(10, threshold
), and then the bin widths grow exponentially in size. The number under each bar indicates the first value that is counted for that bar, and that bar includes all integers from that label up until the integer immediately preceding the label of the next bar on the right. For example, if one bar has a label of "23" and the next bar on the right has a label of "26" then the bar with the label of "23" counts values of 23, 24, and 25 in the data.
a single ggplot2
plot
library(sceptredata)
data(highmoi_example_data)
data(grna_target_data_frame_highmoi)
import_data(
response_matrix = highmoi_example_data$response_matrix,
grna_matrix = highmoi_example_data$grna_matrix,
grna_target_data_frame = grna_target_data_frame_highmoi,
moi = "high",
extra_covariates = highmoi_example_data$extra_covariates,
response_names = highmoi_example_data$gene_names
) |> plot_grna_count_distributions()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.