plot_violin: Plot Violin

Description Usage Arguments Details Examples

View source: R/plot_violin.R

Description

This will plot gene expression via violin plot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
plot_violin(
  input,
  gene,
  color_by,
  facet_by = NULL,
  assay = NULL,
  title = NULL,
  jitter = T,
  plot_mean = T,
  number_labels = T,
  sig = 2,
  size = 1,
  ncol = 2,
  text_sizes = c(20, 10, 5, 10, 5, 5)
)

Arguments

input

The input data

gene

the gene or genes to plot

color_by

colData() column to facet plot by

facet_by

If ONE gene is being plotted it can be faceted. You cannot facet multiple genes

assay

The assay to operate on. Will default to get_def_assay(input)

title

The title

jitter

Whether or not to add jitter points to violin

plot_mean

whether or not to plot the mean value along with a secondary axis

number_labels

Add counts and fraction expression to plot

sig

number of decimals for number_labels

size

The size of the points

ncol

controls the number of columns if faceting

text_sizes

the text sizes on the plot

Details

Utilize information stored in colData to control the plot display.

Examples

1
plot_violin(ex_sc_example, gene = "Tnf", title = "Tnf over Time", facet_by = "Timepoint", density = TRUE)

kgellatl/SignalCell documentation built on Sept. 3, 2020, 8:45 a.m.