plotGene: Plot Gene

Description Usage Arguments Value Author(s) See Also Examples

Description

Plot Gene

Usage

1
2
3
4
5
6
7
## S4 method for signature 'SingleCellExperiment'
plotGene(object, genes, geom = c("dot",
  "violin"), legend = FALSE)

## S4 method for signature 'seurat'
plotGene(object, genes, geom = c("dot", "violin"),
  legend = FALSE)

Arguments

object

Object.

genes

Gene identifiers. Must match the rownames of the object.

geom

Plot type. Uses match.arg() to pick the type. Currently supports "dot" and "violin".

legend

Include plot legend.

Value

ggplot.

Author(s)

Michael Steinbaugh

See Also

Other Gene Expression Functions: plotDot, plotViolin

Examples

1
2
3
4
5
6
7
8
object <- seurat_small
genes <- head(rownames(object))

# Dot
plotGene(object, genes = genes, geom = "dot")

# Violin
plotGene(object, genes = genes, geom = "violin")

roryk/bcbioSinglecell documentation built on May 27, 2019, 10:44 p.m.