scBarplot.FractionBelowThr: Fraction of Cells Below Threshold per Cluster

View source: R/Seurat.Utils.Visualization.R

scBarplot.FractionBelowThrR Documentation

Fraction of Cells Below Threshold per Cluster

Description

Generates a bar plot to visualize the percentage of cells within each cluster that fall below a specified threshold, according to a metadata column value. Inherits all parameters from scBarplot.FractionAboveThr with the exception that above is set to FALSE.

Usage

scBarplot.FractionBelowThr(
  thrX = 0.2,
  value.col = "percent.ribo",
  id.col = "cl.names.top.gene.res.0.3",
  obj = combined.obj,
  return.df = FALSE,
  subtitle = id.col,
  suffix = NULL,
  ...
)

Arguments

thrX

Threshold value for assessing cell counts. Default: 0.01.

value.col

Metadata column with values for threshold comparison. Default: 'percent.ribo'.

id.col

Cluster identifier in metadata. Default: 'cl.names.top.gene.res.0.3'.

obj

Seurat object with cell data. Default: combined.obj.

return.df

If TRUE, returns the data frame instead of the plot. Default: FALSE.

See Also

scBarplot.FractionAboveThr

select, group_by

Examples

## Not run: 
scBarplot.FractionBelowThr(id.col = "cl.names.top.gene.res.0.3", value.col = "percent.ribo", thrX = 0.01)

## End(Not run)


vertesy/Seurat.utils documentation built on Dec. 4, 2024, 5:20 p.m.