er_plot_build: Build and render an exposure-response plot

View source: R/er-plot-api.R

er_plot_buildR Documentation

Build and render an exposure-response plot

Description

Assembles the layers into ggplot2 objects, applies shared theming and legend deduplication across layers, and composes the final output with patchwork.

Usage

er_plot_build(object)

Arguments

object

Partially constructed plot (has S3 class er_plot).

Details

The user does not typically invoke this function directly. Instead, it is called automatically when plot() is called.

Value

The input object, with object$plot (per-layer ggplot2 objects) and object$output (the final composed plot) populated.

See Also

er_plot()


erplots documentation built on Oct. 4, 2026, 5:06 p.m.