add_points: Wrapper to add points to nested loop plot

View source: R/nested_loop.R

add_pointsR Documentation

Wrapper to add points to nested loop plot

Description

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

Usage

add_points(p, position = "top", ...)

Arguments

p

ggplot2 object, output from nested_loop_plot function.

position

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

Details

Simple wrapper for geom_point to add points to nested loop plot. Useful to e.g. indicate special values.

Value

A ggplot2 object.


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