View source: R/plot_gene_express.R
plot_gene_express | R Documentation |
This function plots the expression of one or more genes as a violin plot, over a user defined category, typically a cell type annotation.
plot_gene_express(
sce,
genes,
assay_name = "logcounts",
cat = "cellType",
color_pal = NULL,
title = NULL,
plot_points = FALSE,
ncol = 2
)
sce |
SummarizedExperiment-class object |
genes |
A |
assay_name |
A |
cat |
A |
color_pal |
A named |
title |
A |
plot_points |
A logical indicating whether to plot points over the violin,
defaults to |
ncol |
= Number of columns for the facet in the final plot. Defaults to 2. |
A ggplot()
violin plot for selected genes
Other expression plotting functions:
plot_marker_express()
,
plot_marker_express_ALL()
,
plot_marker_express_List()
## Using Symbol as rownames makes this more human readable
#rownames(sce.test) <- SummarizedExperiment::rowData(sce.test)$Symbol
plot_gene_express(sce = sce_ab, genes = c("G-D1_A"))
#plot_gene_express(sce = sce.test, genes = c("RNF220", "CSF3R"))
#plot_gene_express(sce = sce.test, genes = c("RNF220", "CSF3R"), plot_points = TRUE)
#plot_gene_express(sce = sce.test, assay_name = "counts", genes = c("RNF220", "CSF3R"))
#plot_gene_express(sce = sce.test, assay_name = "counts", genes = c("RNF220", "CSF3R"), title = "Inhib Markers")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.