complex_dotplot_single | R Documentation |
This function can be used for plotting a single gene expression across different groups in a study with complex group design.
complex_dotplot_single(
seu_obj,
feature,
celltypes = NULL,
groups,
splitby = NULL,
color.palette = NULL,
font.size = 12,
strip.color = NULL,
do.scale = T,
scale.by = "radius"
)
seu_obj |
A complete Seurat object. |
feature |
Gene name. Only one gene is allowed. |
celltypes |
Cell types to be included in the dot plot. Default: all cell types. |
groups |
The group to show on x axis. One of the column names in meta.data. |
splitby |
The group to separate the gene expression. One of the column names in meta.data. |
color.palette |
Color for gene expression. |
font.size |
Font size for the labels. |
strip.color |
Colors for the strip background. |
do.scale |
Whether or not to scale the dot when percentage expression of the gene is less than 20. |
scale.by |
Methods to scale the dot size. "radius" or "size". |
A ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.