A thin, friendly wrapper around patchwork::wrap_plots() that adds the
common finishing touches: collecting duplicate legends into one, an overall
title and subtitle, and automatic panel tags (A, B, C, ...).
Usage
arrange_plots(
...,
ncol = NULL,
nrow = NULL,
guides = c("collect", "keep"),
title = NULL,
subtitle = NULL,
tag_levels = "A"
)Examples
p1 <- explore_distribution(crop_yield, yield)
p2 <- scatter_trend(crop_yield, fertiliser, yield)
arrange_plots(p1, p2, ncol = 2, title = "Crop yield", tag_levels = "A")
