Skip to contents

Plot Seurat DimPlot grid set

Usage

plot_dimplot_grid(
  sobj,
  reduction = c("umap", "pca", "tsne"),
  set,
  ncol = 3,
  guides = NULL,
  redtitle = FALSE,
  gridtitle = NULL,
  gridsubtitle = NULL,
  cols_num = c("blue", "red"),
  savename = NULL,
  width = NULL,
  height = NULL
)

Arguments

sobj

Seurat object

reduction

c("pca", "tsne", "umap); must be already present in sobj

set

dataframe or vector; col1 metadata name, col2 (opt) subplot description, col3 (opt) logical T/F for label

ncol

number of columns in grid

guides

string; specify how guides should be treated in layout (?patchwork::wrap_plots)

redtitle

logical; TRUE to prepend reduction method in subplot title

gridtitle

string; title for overall dimplot grid

gridsubtitle

string; subtitle for overall dimplot grid

cols_num

char vector; two colors for low numeric legend range to high numeric legend range

savename

string; filepath to save figure under

width

integer; plot width, if unspecified will try to calculate

height

integer; plot height, if unspecified will try to calculate

Value

Patchwork grid of Seurat DimPlots