plotViolin: Plot Violin

Description Usage Arguments Value Author(s) See Also Examples

Description

Plot Violin

Usage

1
2
3
4
5
6
7
## S4 method for signature 'SingleCellExperiment'
plotViolin(object, genes, scale = c("count",
  "width", "area"), fill = NULL, legend = FALSE)

## S4 method for signature 'seurat'
plotViolin(object, genes, scale = c("count", "width",
  "area"), fill = NULL, legend = FALSE)

Arguments

object

Object.

genes

Gene identifiers. Must match the rownames of the object.

scale

if "area" (default), all violins have the same area (before trimming the tails). If "count", areas are scaled proportionally to the number of observations. If "width", all violins have the same maximum width.

fill

Desired ggplot fill scale. Must supply discrete values. When set to NULL, the default ggplot2 color palette will be used. If manual color definitions are desired, we recommend using ggplot2::scale_fill_manual().

legend

Include plot legend.

Value

ggplot.

Author(s)

Michael Steinbaugh

See Also

Seurat::VlnPlot().

Other Gene Expression Functions: plotDot, plotGene

Examples

1
2
3
4
# seurat ====
object <- seurat_small
genes <- head(rownames(object), 4L)
plotViolin(object, genes = genes)

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