patchwork package in R is an extension of the ggplot2
package, designed to simplify the process of combining multiple
plots into a single layout.
It offers a set of operators that make it easy to specify complex layouts in a human-readable way.
✍️ author → Thomas Lin Pedersen
📘 documentation → github
⭐️ more than 1000 stars on github
To get started with
patchwork, you can install it
directly from CRAN using the
patchwork package allows you to combine multiple
plots using simple arithmetic operators like
Here’s a basic example:
Dumbbell plot with gap section
An extended dumbbell plot originally published by the Pew research center. Clean design with a gap section on the right hand side.
Circular lollipop chart
A circular lollipop chart with customized layout, in circle legend and
A work by Cédric Scherer for the TidyTuesday challenge.