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"


grunwaldlab/metacoder documentation built on Feb. 22, 2024, 3:47 a.m.