{patchwork} is one of my favorite #rstats packages. It's dead-simple to arrange multiple plots. "Add" plots to put them side-by-side "Divide" to stack them. Find out more in the docs (patchwork.data-imaginist.com/index.html) or my blog (albert-rapp.de/posts/ggplot2-…)
If you liked this post, you may enjoy my 3-minute newsletter too. Every week, my newsletter shares insights on - dataviz, - Shiny web apps - stats Reading time: 3 minutes or less You can join at alberts-newsletter.beehiiv.com/subscribe
@rappa753 Looks like a great package! Diwnloading it today. Thanks.
@rappa753 Formely I used to use {cowplot} to do such things, like on that old plot of mine. But {patchwork} is way easier!
@rappa753 Indeed! And you can use patchwork::wrap_elements() to combine non-ggplot plots (or bigger plots) next to each other, or in combination with ggplot plots: "wrap_elements: Wrap arbitrary graphics in a patchwork-compliant patch in patchwork" rdrr.io/cran/patchwork…
@rappa753 Does it help with plotting with 2 y-axis? Any suggestions for that?