plotGeneExpression | R Documentation |
This function generates a violin plot or pie chart for the expression of a specified gene in a Seurat object, based on a given threshold.
plotGeneExpression(
serObj,
gene,
threshold = 0.5,
groupBy = "RNA_snn_res.0.4",
doPie = FALSE,
col_vector = col_vector
)
gene |
The name of the gene for which expression is to be plotted. |
threshold |
The expression threshold for selecting cells (default is 0.5). |
groupBy |
The variable by which the data is grouped (default is "RNA_snn_res.0.4"). |
doPie |
Logical, if TRUE, a pie chart is generated instead of a violin plot (default is FALSE). |
SerObj |
A Seurat object containing single-cell RNA-seq data. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.