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

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.