measure_tag: Native-unit AABB of one composite tag (label stacked above...

View source: R/label_placement.R

measure_tagR Documentation

Native-unit AABB of one composite tag (label stacked above quantity, annotation stacked below quantity, separated by padding). The geometry matches what setup_tag() renders at draw time, so the size handed to eunoia agrees with the actual on-screen footprint.

Description

Native-unit AABB of one composite tag (label stacked above quantity, annotation stacked below quantity, separated by padding). The geometry matches what setup_tag() renders at draw time, so the size handed to eunoia agrees with the actual on-screen footprint.

Usage

measure_tag(
  label,
  quantity,
  annotation,
  labels_par_id,
  quantities_par_id,
  annotations_par_id,
  labels_gp,
  quantities_gp,
  annotations_gp,
  padding_native
)

Arguments

label, quantity, annotation

the three text components of the tag; any of them may be NULL

labels_par_id, quantities_par_id, annotations_par_id

per-component graphical parameter indices; NA or NULL means the component isn't drawn

labels_gp, quantities_gp, annotations_gp

per-component grid::gpar() lists

padding_native

vertical separation between components, in native units


eulerr documentation built on Aug. 22, 2026, 1:09 a.m.