#' Custom VlnPlot for initial QC checks including lines for thresholding
QC_Plots_Mito(
seurat_object,
mito_name = "percent_mito",
plot_title = "Mito Gene % per Cell/Nucleus",
group.by = NULL,
x_axis_label = NULL,
y_axis_label = "% Mitochondrial Gene Counts",
low_cutoff = NULL,
high_cutoff = NULL,
pt.size = NULL,
plot_median = FALSE,
median_size = 15,
plot_boxplot = FALSE,
colors_use = NULL,
x_lab_rotate = TRUE,
y_axis_log = FALSE,
raster = NULL,
ggplot_default_colors = FALSE,
color_seed = 123,
...
)
Seurat object name.
The column name containing percent mitochondrial counts information. Default value is
"percent_mito" which is default value created when using Add_Mito_Ribo_Seurat()
.
Plot Title.
Name of one or more metadata columns to group (color) cells by (for example, orig.ident); default is the current active.ident of the object.
Label for x axis.
Label for y axis.
Plot line a potential low threshold for filtering.
Plot line a potential high threshold for filtering.
Point size for plotting.
logical, whether to plot median for each ident on the plot (Default is FALSE).
Shape size for the median is plotted.
logical, whether to plot boxplot inside of violin (Default is FALSE).
vector of colors to use for plot.
Rotate x-axis labels 45 degrees (Default is TRUE).
logical. Whether to change y axis to log10 scale (Default is FALSE).
Convert points to raster format. Default is NULL which will rasterize by default if greater than 100,000 total points plotted (# Cells x # of features).
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.
Extra parameters passed to VlnPlot
.
A ggplot object
if (FALSE) {
QC_Plots_Mito(seurat_object = object, plot_title = "Percent Mito per Cell", high_cutoff = 10)
}