Skip to contents

Make a combined violin-boxplot plot.

Usage

plot_vln(
  sce,
  ensembl_id,
  groups,
  add_jitter = TRUE,
  jitter_color = TRUE,
  jitter_point_size = 0.5,
  violin_scale = "area",
  boxplot_width = 0.1,
  labs = NULL
)

Arguments

sce

A SingleCellExperiment object.

ensembl_id

A character scalar: ENSEMBL ID of feature to plot.

groups

A character scalar: name of a column in colData(sce) by which to divide cells. Violin plot will be created for each level.

add_jitter

A logical scalar: if TRUE, add jitter to points.

jitter_color

A logical scalar: if TRUE, jittered points will be colored by groups.

jitter_point_size

A numeric scalar.

violin_scale

A character scalar: passed to ggplot2::geom_violin() (scale parameter).

boxplot_width

A numeric scalar: passed to ggplot2::geom_boxplot() (width parameter).

labs

A ggplot2::labs() object.

Value

A ggplot2 object.