add_geom_at_position: Adds 'ggplot2' derived geometry at specified z-level position

View source: R/nested_loop.R

add_geom_at_positionR Documentation

Adds ggplot2 derived geometry at specified z-level position

Description

Adds ggplot2 derived geometry at specified z-level position

Usage

add_geom_at_position(p, geom, position = "top")

Arguments

p

ggplot2 object, output from nested_loop_plot function.

geom

ggplot2 derived geometry which should be added to the plot object.

position

Position of the geometry layer, either "bottom" or "top". By default lines are added below all other layers 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 to add arbitrary geometries to nested loop plot.

Value

A ggplot2 object.


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