Learn R Programming

DLMtool (version 5.2)

join_plots: Plot several plots with a shared legend

Description

Plot several plots with a shared legend

Usage

join_plots(plots, ncol = length(plots), nrow = 1, position = c("right",
  "bottom"))

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")