mark_rule: Add a rule (reference line) mark

View source: R/marks.R

mark_ruleR Documentation

Add a rule (reference line) mark

Description

Add a rule (reference line) mark

Usage

mark_rule(
  spec,
  ...,
  data = NULL,
  style = list(),
  x_intercept = NULL,
  y_intercept = NULL
)

Arguments

spec

A glyph_spec

...

Aesthetic mappings (x, y, color, size, shape, alpha, tooltip)

data

Optional per-mark data override

style

Named list of fixed visual properties

x_intercept

Fixed x position for vertical rule

y_intercept

Fixed y position for horizontal rule

Value

Modified glyph_spec object with the rule mark added


glyph documentation built on Oct. 21, 2026, 5:12 p.m.