| build_tag_grobs | R Documentation |
Shared between setup_tag() (initial construction in setup_grobs())
and makeContent.EulerTags() (draw-time re-placement on resize).
Pure factory — no measurement; takes anchor + tether already in
native units, plus the stashed text / gpar bundle. The label /
quantity / annotation stack is centered vertically on (ax, ay)
so the bbox center matches the anchor eunoia placed and leader
endpoints land on the actual bbox edge.
build_tag_grobs(
ax,
ay,
kind,
tx,
ty,
lend_x,
lend_y,
label_text,
quantity_text,
annotation_text,
has_label,
has_quantity,
has_annotation,
label_gp,
quantity_gp,
annotation_gp,
label_rot,
quantity_rot,
annotation_rot,
number,
leader_gp_list,
padding,
waypoints_x = numeric(0),
waypoints_y = numeric(0),
name_prefix = "tag"
)
ax, ay |
the tag anchor, in native units |
kind |
the placement kind eunoia returned (interior, exterior, ...) |
tx, ty |
the tether point on the shape, in native units |
lend_x, lend_y |
the leader endpoint on the tag bbox, in native units |
label_text, quantity_text, annotation_text |
the three text components |
has_label, has_quantity, has_annotation |
whether each component is drawn |
label_gp, quantity_gp, annotation_gp |
per-component |
label_rot, quantity_rot, annotation_rot |
per-component rotation, in degrees |
number |
the diagram's region index, used to name the grobs |
leader_gp_list |
|
padding |
vertical separation between components, as a
|
waypoints_x, waypoints_y |
intermediate leader vertices, in native units |
name_prefix |
prefix for the generated grob names |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.