wrap {ggalign} | R Documentation |
The wrap()
function allows non-ggplot2 elements to be converted into a
compliant representation for use with align_plots()
. This is useful for
adding any graphics that can be converted into a grob with the
patch()
method.
wrap(plot, ..., align = "panel", on_top = TRUE, clip = TRUE, vp = NULL)
plot |
Any graphic that can be converted into a grob using
|
... |
Additional arguments passed to the |
align |
A string specifying the area to place the plot: |
on_top |
A single boolean value indicates whether the graphic plot should be put frontmost. Note: the graphic plot will always put above the background. |
clip |
A single boolean value indicating whether the grob should be clipped if they expand outside their designated area. |
vp |
A viewport object, you can use this to define the plot area. |
A wrapped_plot
object that can be directly placed into
align_plots()
.