plotGeneViolin {rliger} | R Documentation |
Visualize gene expression or cell metadata with violin plot
Description
Visualize gene expression or cell metadata with violin plot
Usage
plotGeneViolin(object, gene, byDataset = TRUE, groupBy = NULL, ...)
plotTotalCountViolin(object, groupBy = "dataset", ...)
plotGeneDetectedViolin(object, groupBy = "dataset", ...)
Arguments
object |
A liger object. |
gene |
Character gene names. |
byDataset |
Logical, whether the violin plot should be splitted by
dataset. Default |
groupBy |
Names of available categorical variable in |
... |
Additional arguments passed to |
Value
ggplot if using a single gene and not splitting by dataset. Otherwise, list of ggplot.
Examples
plotGeneViolin(pbmcPlot, varFeatures(pbmcPlot)[1],
groupBy = "leiden_cluster")
plotTotalCountViolin(pbmc)
plotGeneDetectedViolin(pbmc, dot = TRUE, box = TRUE, colorBy = "dataset")
[Package rliger version 2.0.1 Index]