Skip to contents

Takes a Region object, a numeric variable (what), and a grouping variable (group.by), and plots the distributions as violin plots. Can subset the groups by using the subset parameter

Usage

plotViolins.Region(
  object,
  what,
  group.by,
  subset = NULL,
  data.slot = "NormalizedData",
  color.pal = NULL,
  plot.title = NULL,
  outline.color = NULL,
  aspect.ratio = NULL
)

Arguments

object

A Region object

what

Which marker or metadata column to plot distributions for. Must correspond to a numeric vector in RegionData, bgData, or cellMetadata

group.by

Which metadata to group by. Should correspond to a categorical variable.

subset

If not null, attempts to subset the variables in group.by to those passed to this parameter.

data.slot

Which data slot to pull expression data from.

color.pal

Vector of colors to plot with (passed to scale_color_ helpers)

plot.title

Plot title

outline.color

Outline color for polygons and other fill geoms

aspect.ratio

ggplot param

Scroll to top