join_plots: Plot several plots with a shared legend

Description Usage Arguments Note

View source: R/MSE_Plotting.R

Description

Plot several plots with a shared legend

Usage

1
2
3
4
5
6
7
join_plots(
  plots,
  ncol = length(plots),
  nrow = 1,
  position = c("right", "bottom"),
  legend = TRUE
)

Arguments

plots

list of plot objects of class gg or ggplot

ncol

Optional number of columns

nrow

Optional number of rows

position

position of the legend ("bottom" or "right")

legend

Logical. Use a legend?

Note

modified from https://github.com/tidyverse/ggplot2/wiki/share-a-legend-between-two-ggplot2-graphs


DLMtool/DLMtool documentation built on June 20, 2021, 5:20 p.m.