View source: R/Seurat.Utils.Visualization.R
scBarplot.FractionAboveThr | R Documentation |
Generates a bar plot depicting the percentage of cells within each cluster that exceed a specified threshold, based on a selected metadata column.
scBarplot.FractionAboveThr(
value.col = "percent.ribo",
thrX = 0.1,
obj = combined.obj,
id.col = GetClusteringRuns(obj)[1],
subtitle = id.col,
ext = ".png",
return.df = FALSE,
label = NULL,
suffix = NULL,
above = TRUE,
ylim = c(0, 100),
...
)
value.col |
Column in metadata with values to assess against |
thrX |
Threshold for calculating the fraction of cells. Default: 0.3. |
obj |
Seurat object with single-cell data. Default: |
id.col |
Cluster identity column in metadata. Default: 'cl.names.top.gene.res.0.3'. |
subtitle |
Optional subtitle for the plot. |
ext |
File extension for saving the plot. Default: '.png'. |
return.df |
Whether to return the underlying data frame instead of the plot. Default: |
label |
Whether to add labels to the bar plot. Default: NULL. |
suffix |
Suffix for the output file name. |
above |
Whether to calculate the fraction of cells above or below the threshold. Default: |
... |
Additional parameters for plotting functions. |
select
, group_by
## Not run:
scBarplot.FractionAboveThr(id.col = "cl.names.top.gene.res.0.3", value.col = "percent.ribo", thrX = 0.2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.