add_annotation: Wrapper to add annotations to nested loop plot

View source: R/nested_loop.R

add_annotationR Documentation

Wrapper to add annotations to nested loop plot

Description

All parameters not explicitly described here are simply passed to annotate.

Usage

add_annotation(p, position = "bottom", ...)

Arguments

p

ggplot2 object, output from nested_loop_plot function.

position

Position of the geometry layer, either "bottom" or "top". By default lines are added below all other lines in the plot to not obscure them, but by setting position to "top", these lines can also be plotted above other lines.

Details

Simple wrapper for annotate to add annotations to nested loop plot. Useful to display e.g. ribbons that indicate certain areas of interest within a plot.

Value

A ggplot2 object.


matherealize/looplot documentation built on Jan. 14, 2024, 2:07 a.m.