CombinePlots: Combine ggplot2-based plots into a single plot

Description Usage Arguments Value Examples

Description

Combine ggplot2-based plots into a single plot

Usage

1

Arguments

plots

A list of gg objects

ncol

Number of columns

legend

Combine legends into a single legend choose from 'right' or 'bottom'; pass 'none' to remove legends, or NULL to leave legends as they are

...

Extra parameters passed to plot_grid

Value

A combined plot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
pbmc_small[['group']] <- sample(
  x = c('g1', 'g2'),
  size = ncol(x = pbmc_small),
  replace = TRUE
)
plots <- FeaturePlot(
  object = pbmc_small,
  features = c('MS4A1', 'FCN1'),
  split.by = 'group',
  combine = FALSE
)
CombinePlots(
  plots = plots,
  legend = 'none',
  nrow = length(x = unique(x = pbmc_small[['group', drop = TRUE]]))
)

atakanekiz/Seurat3.0 documentation built on May 26, 2019, 2:33 a.m.