Custom FeatureScatter for initial QC checks including lines for thresholding
QC_Plot_GenevsFeature(
seurat_object,
feature1,
x_axis_label = NULL,
y_axis_label = "Genes per Cell/Nucleus",
low_cutoff_gene = NULL,
high_cutoff_gene = NULL,
low_cutoff_feature = NULL,
high_cutoff_feature = NULL,
colors_use = NULL,
pt.size = 1,
group.by = NULL,
raster = NULL,
raster.dpi = c(512, 512),
ggplot_default_colors = FALSE,
color_seed = 123,
shuffle_seed = 1,
...
)
Seurat object name.
First feature to plot.
Label for x axis.
Label for y axis.
Plot line a potential low threshold for filtering genes per cell.
Plot line a potential high threshold for filtering genes per cell.
Plot line a potential low threshold for filtering feature1 per cell.
Plot line a potential high threshold for filtering feature1 per cell.
vector of colors to use for plotting by identity.
Adjust point size for plotting.
Name of one or more metadata columns to group (color) cells by (for example, orig.ident).
Default is @active.ident
.
Convert points to raster format. Default is NULL which will rasterize by default if greater than 100,000 cells.
Pixel resolution for rasterized plots, passed to geom_scattermore(). Default is c(512, 512).
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.
Sets the seed if randomly shuffling the order of points (Default is 1).
Extra parameters passed to FeatureScatter
.
A ggplot object
if (FALSE) {
QC_Plot_GenevsFeature(seurat_object = obj, y_axis_label = "Feature per Cell")
}