powered by
Code for creating customized DotPlot
DotPlot_scCustom( seurat_object, features, group.by = NULL, colors_use = viridis_plasma_dark_high, remove_axis_titles = TRUE, x_lab_rotate = FALSE, y_lab_rotate = FALSE, facet_label_rotate = FALSE, flip_axes = FALSE, ... )
A ggplot object
Seurat object name.
Features to plot.
Name of metadata variable (column) to group cells by (for example, orig.ident); default is the current active.ident of the object.
specify color palette to used. Default is viridis_plasma_dark_high.
logical. Whether to remove the x and y axis titles. Default = TRUE.
Rotate x-axis labels 45 degrees (Default is FALSE).
Rotate facet labels on grouped DotPlots by 45 degrees (Default is FALSE).
DotPlots
whether or not to flip and X and Y axes (Default is FALSE).
Extra parameters passed to DotPlot.
DotPlot
# \donttest{ library(Seurat) DotPlot_scCustom(seurat_object = pbmc_small, features = c("CD3E", "CD8", "GZMB", "MS4A1")) # }
Run the code above in your browser using DataLab