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")

WeiSong-bio/roryk-bcbioSinglecell documentation built on July 6, 2019, 12:03 a.m.