Plot cells with two colors
plot_red_and_blue.Rd
This function is used to represent the two groups that will be compared by differential expression, and represent the number of cells in each group. Groups must be in @active.ident
slot. Run Seurat::Idents()<-
to update this slot.
Usage
plot_red_and_blue(
sobj,
group1,
group2 = NULL,
reduction = NULL,
order = TRUE,
group1_color = "#F8766D",
group2_color = "#00BFC4",
other_color = "lightgray",
color_title = TRUE,
...
)
Arguments
- sobj
Seurat object (no default)
- group1
VECTOR : levels of active identifier correspond to first group (no default)
- group2
VECTOR : levels of active identifier correspond to second group, could be NULL (default to NULL)
- reduction
CHARACTER : projection, must be in
@reductions
slot (default to the first one)- order
LOGICAL : the Seurat::DimPlot order parameter (default to TRUE)
- group1_color
CHARACTER : color for group1 cells (default to "#F8766D")
- group2_color
CHARACTER : color for group2 cells (default to "#00BFC4")
- other_color
CHARACTER : color for other cells (default to "lightgray")
- color_title
LOGICAL : whether to color the title or not (default to TRUE, require the ggtext package)
- ...
other parameters for
Seurat::DimPlot
function