angle_adj: Horizontal and Vertical Dimensions of a Rectangle after...

Description Usage Arguments Value

View source: R/plotting_util.bare.R

Description

Calculate the horizontal and vertical dimensions of a rectangle after rotation by angle theta (in degrees). This is an internal function, not intended to be called by package users.

Usage

1
angle_adj(hsize, vsize, theta)

Arguments

hsize, vsize

Numeric scalars, the width and height of a rectangle oriented parallel to the coordinate axes, with one corner at the origin.

theta

Rotation angle, in degrees.

Value

Two-element vector with the new width and height, with respect to the original axes, of the rotated rectangle.


tablesgg documentation built on June 3, 2021, 1:06 a.m.