plot_violin_wFeatFilter | R Documentation |
Plot Violin Plots of Gene Expression by Group
plot_violin_wFeatFilter(
SerObj,
Feature,
group.by,
NumFeatName = NULL,
cutGT = T,
ThrCut = 0,
GrpFacLevels = NULL,
compariSerObjns = NULL,
xlab = "",
ylab = "",
palette = col_vector,
addJitter = F
)
SerObj |
A Seurat object containing the data to plot. |
Feature |
The name of the feature to plot. |
group.by |
The name of the metadata field to group cells by. |
NumFeatName |
The name of the variable containing the number of features for each cell. If provided, cells with a number of features greater than the median will be excluded from the plot. |
cutGT |
If TRUE (default), cells with a number of features greater than the median will be excluded from the plot. If FALSE, cells with a number of features less than or equal to the median will be excluded from the plot. |
ThrCut |
The threshold for feature filtering. Cells with a value in the sdaCompName column greater than this threshold will be excluded from the plot. Default is 0, which will skip this step. |
GrpFacLevels |
The levels of the factor variable to use for grouping. If NULL (default), all levels will be included. |
compariSerObjns |
A list of compariSerObjns to perform using |
xlab |
(Optional) The x-axis label. |
ylab |
(Optional) The y-axis label. |
palette |
The color palette to use for the plot. |
addJitter |
If TRUE, jitter points will be added to the plot. Default is FALSE. |
A ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.