plotBeeswarm | R Documentation |
Beeswarm plot of effect sizes for each assay, colored by sign and FDR
plotBeeswarm(res.dl, coef, fdr.range = 4, assays = assayNames(res.dl))
res.dl |
|
coef |
coefficient name fed to |
fdr.range |
range for coloring FDR |
assays |
which assays to plot |
ggplot2
of logFC by assay
library(muscat)
library(SingleCellExperiment)
data(example_sce)
# create pseudobulk for each sample and cell cluster
pb <- aggregateToPseudoBulk(example_sce,
assay = "counts",
cluster_id = "cluster_id",
sample_id = "sample_id",
verbose = FALSE
)
# voom-style normalization
res.proc <- processAssays(pb, ~group_id)
# Differential expression analysis within each assay,
# evaluated on the voom normalized data
res.dl <- dreamlet(res.proc, ~group_id)
# Beeswarm plot of effect sizes for each assay,
# colored by sign and FDR
plotBeeswarm(res.dl, "group_idstim")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.