Function to rescale a polygon such that it keeps the "original" aspec ratio.
1 | 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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.