plotCeldaViolin {celda}R Documentation

Feature Expression Violin Plot

Description

Outputs a violin plot for feature expression data.

Usage

plotCeldaViolin(
  counts,
  celdaMod,
  features,
  exactMatch = TRUE,
  plotDots = TRUE,
  dotSize = 0.1
)

Arguments

counts

Integer matrix. Rows represent features and columns represent cells.

celdaMod

Celda object of class "celda_G" or "celda_CG".

features

Character vector. Uses these genes for plotting.

exactMatch

Logical. Whether an exact match or a partial match using grep() is used to look up the feature in the rownames of the counts matrix. Default TRUE.

plotDots

Boolean. If TRUE, the expression of features will be plotted as points in addition to the violin curve. Default TRUE.

dotSize

Numeric. Size of points if plotDots = TRUE. Default 0.1.

Value

Violin plot for each feature, grouped by celda cluster

Examples

data(celdaCGSim, celdaCGMod)
plotCeldaViolin(
  counts = celdaCGSim$counts,
  celdaMod = celdaCGMod, features = "Gene_1"
)

[Package celda version 1.4.7 Index]