abline_mfd: Add reference lines to all panels of the current multi-panel...

View source: R/00_mfd.R

abline_mfdR Documentation

Add reference lines to all panels of the current multi-panel plot

Description

Calls abline in every panel actually used by the most recent call to plot.mfd.

Usage

abline_mfd(a = NULL, b = NULL, h = NULL, v = NULL, ...)

Arguments

a, b

the intercept and slope, single values.

h

the y-value(s) for horizontal line(s).

v

the x-value(s) for vertical line(s).

...

Further graphical parameters (e.g., col, lty, lwd).

Details

The function relies on plot.mfd having stored the number of variables in options("last_mfd_nvar"). It then loops over exactly that many panels in the current layout.

Calls abline in every panel actually used by the most recent call to plot.mfd. Vertical and horizontal lines span the full x- or y-range of each panel, even when scales differ.


funcharts documentation built on Dec. 12, 2025, 5:06 p.m.