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)

eulerr documentation built on May 30, 2026, 1:07 a.m.