rescale_polygon: Function to rescale a polygon such that it keeps the...

Description Usage Arguments

View source: R/pie.r

Description

Function to rescale a polygon such that it keeps the "original" aspec ratio.

Usage

1
rescale_polygon(coordinates, yorigin = mean(coordinates[, 2]), adj = NULL)

Arguments

coordinates

A two-column matrix or data frame with coordinates (xy).

yorigin

Reference point in the y-axis.

adj

Rescale factor (scalar). By default the adjustment is computed using graphics::par() usr and pin.


USCbiostats/polygons documentation built on May 27, 2021, 2:34 a.m.