expand_limits_with_canvas: Union the current 'xlim'/'ylim' with the canvas bbox reported...

View source: R/label_placement.R

expand_limits_with_canvasR Documentation

Union the current xlim/ylim with the canvas bbox reported by eunoia. Returns the (possibly widened) limits.

Description

slack pads the canvas bbox before the union (multiplicative, centered on the bbox center). The setup-time bbox is sized for one reference device; padding gives the draw-time placement headroom when the user resizes the device smaller than that reference and labels grow in native units accordingly. A slack of 1.4 absorbs roughly a 30 % linear resize before exterior labels start to fall outside the panel viewport.

Usage

expand_limits_with_canvas(limits, placements, slack = 1.4)

Arguments

limits

a list of xlim/ylim to widen

placements

the placement record list returned by the Rust FFI

slack

multiplicative padding applied to the canvas bbox before the union


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