Learn R Programming

fb4package (version 2.0.0)

add_plot_annotations: 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"
)

Value

NULL (modifies current plot)

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.