measure_all_tags: Measure every drawable tag inside 'tags_grob' against the...

View source: R/tag-grobs.R

measure_all_tagsR Documentation

Measure every drawable tag inside tags_grob against the current viewport. Returns parallel vectors of combo / width / height suitable for handing to place_euler_labels(), plus the resolved leader gap in native units (so the FFI sees one number per draw pass).

Description

Measure every drawable tag inside tags_grob against the current viewport. Returns parallel vectors of combo / width / height suitable for handing to place_euler_labels(), plus the resolved leader gap in native units (so the FFI sees one number per draw pass).

Usage

measure_all_tags(tags_grob, padding, gap = NULL)

Arguments

tags_grob

an EulerTags gTree

padding

vertical separation between tag components, as a grid::unit()

gap

leader-tip gap; see resolve_gap_native()


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