Plot CompositionAt the heart of patchwork lies a range of powerful functions for combining plots into an assembly of plots that can be layed out in a grid. Patchwork provides both an extension of ggplot2’s |
|
---|---|
|
Plot arithmetic |
Wrap plots into a patchwork |
|
Create an inset to be added on top of the previous plot |
|
Layout SpecificationsWhile patchwork will automatically lay out the plots in a grid, additional control is often needed, along with the possibility of adding annotations etc. |
|
Define the grid to compose plots in |
|
Annotate the final patchwork |
|
Add a completely blank area |
|
Free a plot from various alignments |
|
Add an area to hold collected guides |
|
Specify a plotting area in a layout |
|
Alternative plot objectspatchwork is build to work with ggplot2 but standard grobs can also be included. Further, it is possible to define empty areas if needed. |
|
Wrap arbitrary graphics in a patchwork-compliant patch |
|
Wrap a table in a patchwork compliant patch |
|
Make a gtable created from a ggplot object patchwork compliant |
|
Align across pagesSometimes it is necessary to align plots across pages, not within a composition, e.g. when creating figures for presentations. While not the main focus of patchwork, it still contains the necessary infrastructure to achieve this. |
|
Align plots across multiple pages |