grid_arrange_common_legend: Plot listed plots with one common legend

View source: R/plot_batch_effect.R

grid_arrange_common_legendR Documentation

Plot listed plots with one common legend

Description

Plot listed plots with one common legend

Usage

grid_arrange_common_legend(
  plot_lists,
  nrow = 1,
  ncol = length(plot_lists),
  position = c("bottom", "right")
)

Arguments

plot_lists

The list of ggplots

nrow

Numeric, number of rows to arrange the plots

ncol

Numeric, number of columns to arrange the plots.

position

Character, Position of the legend, either "bottom" or "right".

Value

combained ggplot

Examples

gg_a <- grid_arrange_common_legend(plot_lists = plots, nrow = 2, ncol = 2,
position = "right")

prybakowska/CytoQP documentation built on June 28, 2022, 12:36 a.m.