plot_cells_per_sample_and_perturbation | R Documentation |
Make a boxplot of the number of cells per sample, with each perturbation as a separate box. Optionally facet by a second value.
plot_cells_per_sample_and_perturbation(
cds,
perturbation_col = "perturbation",
count_per_sample_col = "count_per_embryo",
zscore = FALSE,
cutoff = NULL,
facet_by = NULL,
color_palette = NULL,
yticks = NULL
)
cds |
A cell_data_set for plotting. |
perturbation_col |
How to group the cells for the plot. Must be a column of the colData. |
count_per_sample_col |
Which column of the colData to put in the boxplots. |
zscore |
logical value indicating whether to z-score counts before plotting. If |
cutoff |
The minimum number of cells per sample, drawn as a horizontal line. If |
facet_by |
Facet the plot by this column of the colData. Each unique value is its own facet. |
color_palette |
List of colors to color perturbation groups. Default is NULL. When NULL, use a default set. |
yticks |
List of numeric values to put on the y-axis ticks. |
A ggplot2 object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.