| mark_rule | R Documentation |
Add a rule (reference line) mark
mark_rule(
spec,
...,
data = NULL,
style = list(),
x_intercept = NULL,
y_intercept = NULL
)
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 |
Modified glyph_spec object with the rule mark added
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.