R/pie.r
rescale_polygon.RdFunction to rescale a polygon such that it keeps the "original" aspec ratio.
rescale_polygon(coordinates, yorigin = mean(coordinates[, 2]), adj = NULL)
| 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 |