Plots the proportion of cells belonging to each identity per sample split by grouping variable/condition.
Proportion_Plot_per_Sample(
seurat_object,
cluster = "ident",
split.by,
sample_col,
pt.size = 1.5,
x_lab_rotate = TRUE,
colors_use = NULL,
ggplot_default_colors = FALSE,
color_seed = 123
)
Seurat object name.
name of meta.data column containing cluster values. Default is ident
which defaults to current active.ident.
name of meta.data column containing sample group/condition variable.
name of meta.data column that contains sample ID information.
the size of points in plot (default is 1.5).
Rotate x-axis labels 45 degrees (Default is FALSE). Only valid if plot_type = "bar"
.
color palette to use for plotting.
logical. If colors_use = NULL
, Whether or not to return plot using
default ggplot2 "hue" palette instead of default "polychrome" or "varibow" palettes.
random seed for the "varibow" palette shuffle if colors_use = NULL
and number of
groups plotted is greater than 36. Default = 123.
if (FALSE) {
Proportion_Plot_per_Sample(seurat_object = obj, split.by = "Diagnosis",
sample_col = "orig.ident")
}