add_plot_annotations: Add Standard Plot Annotations

View source: R/16.1-plot-core.R

add_plot_annotationsR Documentation

Add Standard Plot Annotations

Description

Adds common plot elements like grid, reference lines, and statistics text.

Usage

add_plot_annotations(
  add_grid = TRUE,
  reference_lines = NULL,
  stats_text = NULL,
  stats_position = "topright"
)

Arguments

add_grid

Logical, add grid lines, default TRUE

reference_lines

Numeric vector of reference line positions

stats_text

Character vector of statistics to display

stats_position

Position for statistics: "topright", "topleft", etc.

Value

NULL (modifies current plot)


fb4package documentation built on May 8, 2026, 1:07 a.m.