Learn R Programming

rliger (version 2.0.1)

plotVarFeatures: Plot the variance vs mean of feature expression

Description

For each dataset where the feature variablitity is calculated, a plot of log10 feature expression variance and log10 mean will be produced. Features that are considered as variable would be highlighted in red.

Usage

plotVarFeatures(object, combinePlot = TRUE, dotSize = 1, ...)

Value

ggplot object when combinePlot = TRUE, a list of ggplot objects when combinePlot = FALSE

Arguments

object

liger object. selectGenes needs to be run in advance.

combinePlot

Logical. If TRUE, sub-figures for all datasets will be combined into one plot. if FALSE, a list of plots will be returned. Default TRUE.

dotSize

Controls the size of dots in the main plot. Default 0.8.

...

More theme setting parameters passed to .ggplotLigerTheme.

Examples

Run this code
pbmc <- normalize(pbmc)
pbmc <- selectGenes(pbmc)
plotVarFeatures(pbmc)

Run the code above in your browser using DataLab