Create Plot with cluster of interest highlighted
Cluster_Highlight_Plot(
seurat_object,
cluster_name,
highlight_color = NULL,
background_color = "lightgray",
pt.size = NULL,
aspect_ratio = NULL,
figure_plot = FALSE,
raster = NULL,
raster.dpi = c(512, 512),
label = FALSE,
split.by = NULL,
split_seurat = FALSE,
split_title_size = 15,
num_columns = NULL,
reduction = NULL,
ggplot_default_colors = FALSE,
...
)
Seurat object name.
Name(s) (or number(s)) identity of cluster to be highlighted.
Color(s) to highlight cells. The default is NULL and plot will use
scCustomize_Palette()
.
non-highlighted cell colors.
point size for both highlighted cluster and background.
Control the aspect ratio (y:x axes ratio length). Must be numeric value; Default is NULL.
logical. Whether to remove the axes and plot with legend on left of plot denoting
axes labels. (Default is FALSE). Requires split_seurat = TRUE
.
Convert points to raster format. Default is NULL which will rasterize by default if greater than 200,000 cells.
Pixel resolution for rasterized plots, passed to geom_scattermore(). Default is c(512, 512).
Whether to label the highlighted cluster(s). Default is FALSE.
Feature to split plots by (i.e. "orig.ident").
logical. Whether or not to display split plots like Seurat (shared y axis) or as individual plots in layout. Default is FALSE.
size for plot title labels when using split.by
.
Number of columns in plot layout. Only valid if split.by != NULL
.
Dimensionality Reduction to use (if NULL then defaults to Object default).
logical. If colors_use = NULL
, Whether or not to return plot using
default ggplot2 "hue" palette instead of default "polychrome" or "varibow" palettes.
Extra parameters passed to DimPlot
.
A ggplot object
Cluster_Highlight_Plot(seurat_object = pbmc_small, cluster_name = "1", highlight_color = "gold",
background_color = "lightgray", pt.size = 2)