For convenience, labels can be added to refer to the subfigures. All
parameters of textGrob can be used for the formatting of the labels,
including the positioning (x, hjust, etc.).
The function geom_custom extends the ggplot2 function
annotation_custom to cases where multiple grobs are to be placed,
e.g. on different panels, or at different positions in a plot. This
geom is a bit special in that it does not truly respect a grammar of
graphics – arbitrary grobs can be plotted, with no explicit mapping to
variables. Its typical use would be to place annotations (images,
tables, …). The data used to create the annotation is passed as a
list-column.
egg package
This document provides a brief overview of the main utiilty functions included in the
eggpackage.Exposing ggplot2 layouts
Setting panel size
Aligning complex ggplots
This is a convenience function similar to
grid.arrange, specialised for ggplot2 objects, which attempts to align the plot panels,Widths and heights should correspond to the layout.
For convenience, labels can be added to refer to the subfigures. All parameters of
textGrobcan be used for the formatting of the labels, including the positioning (x,hjust, etc.).Custom geom
The function
geom_customextends the ggplot2 functionannotation_customto cases where multiple grobs are to be placed, e.g. on different panels, or at different positions in a plot. This geom is a bit special in that it does not truly respect a grammar of graphics – arbitrary grobs can be plotted, with no explicit mapping to variables. Its typical use would be to place annotations (images, tables, …). The data used to create the annotation is passed as a list-column.