Learn R Programming

metacoder (version 0.3.7)

label_bounds: 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"