label_bounds: Bounding box coords for labels

View source: R/heat_tree--internal.R

label_boundsR Documentation

Bounding box coords for labels

Description

Given a position, size, rotation, and justification of a label, calculate the bounding box coordinates

Usage

label_bounds(label, x, y, height, rotation, just)

Arguments

x

Horizontal position of center of text grob

y

Vertical position of center of text grob

height

Height of text grob

rotation

Rotation in radians

just

Justification. e.g. "left-top"


metacoder documentation built on April 4, 2023, 9:08 a.m.