annotate_panel {ggbrain} | R Documentation |
Adds custom annotations to a single panel on the ggbrain plot
Description
Adds custom annotations to a single panel on the ggbrain plot
Usage
annotate_panel(x = "middle", y = "middle", slice_index = NULL, ...)
Arguments
x |
the x position of the annotation. If numeric, it is assumed to be the pixel position along the x axis (e.g., 26).
In addition, convenience values of 'left', 'right', or |
y |
the y position of the annotation. If numeric, it is assumed to be the pixel position along the y axis (e.g., 26).
In addition, convenience values of 'left', 'right', or |
slice_index |
the slice number to which this annotation is added. These are numbered in the wrapping order from patchwork::wrap_plots, which will normally go from top-left to bottom-right. |
... |
Additional parameters passed to ggplot2::annotate such as |
Details
Note that this only handles a single annotation on a single panel!
Value
a ggb
object with the relevant annotations field and an action of "add_annotations"