plot_vlnGrid: Make grid of violin plots

Description Usage Arguments Value

Description

produce a n_cluster * n_feature grid of violin plots

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
plot_vlnGrid(
  seurat_obj,
  assay,
  slot,
  var_group,
  vec_features,
  vec_group_colors = NULL,
  f_color = colorRampPalette(brewer.pal(n = 11, name = "RdYlBu")),
  flip = T,
  do_plot = F,
  pt.size = 0,
  feature_fontface = "bold.italic",
  fontsize_axistext_x = 12,
  fontsize_axistext_y = 12,
  aspect.ratio = NULL
)

Arguments

seurat_obj

Seurat object (Seurat ^3.0)

assay

seurat_obj assay to use

slot

seurat_obj slot to use

var_group

the group variable, character

vec_features

a vector of features to plot in the violin plot

vec_group_colors

a vector of colors, named by corresponding group. Length must match number of groups. Character

f_color

if vec_group_colors is not provided, the user may instead provide a function f_color() that takes as its only argument the number of colors to generate

flip

if TRUE (default), groups are rows and features are columns, and vice-verso for FALSE

do_plot

Whether to plot, logical

pt.size

size of jitter in the violin plots. Set to 0 (default) to omit

feature_fontface

the fontface

fontsize_axistext_x

passed to ggplot2

fontsize_axistext_y

passed to ggplot2

Value

ggplot2 object


CBMR-Single-Cell-Omics-Platform/SCOPfunctions documentation built on May 29, 2021, 3:52 p.m.