View source: R/Plotting_Statistics.R
Proportion_Plot_per_Sample | R Documentation |
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 |
Seurat object name. |
cluster |
name of meta.data column containing cluster values. Default is |
split.by |
name of meta.data column containing sample group/condition variable. |
sample_col |
name of meta.data column that contains sample ID information. |
pt.size |
the size of points in plot (default is 1.5). |
x_lab_rotate |
Rotate x-axis labels 45 degrees (Default is FALSE). Only valid if |
colors_use |
color palette to use for plotting. |
ggplot_default_colors |
logical. If |
color_seed |
random seed for the "varibow" palette shuffle if |
## Not run:
Proportion_Plot_per_Sample(seurat_object = obj, split.by = "Diagnosis",
sample_col = "orig.ident")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.