View source: R/polygon_centroids.R
poly_transform_shape | R Documentation |
Mainly for internal use. The function transforms ('projects') arbitrary input coordinates that are used as parent polygon or shape of the treemap. By default it scales and centers polygon coordinates on a square of 0 to 2000 units.
poly_transform_shape(poly, xy_max = 2000)
poly |
(list) named list of 'x' and 'y' coordinates of the polygon |
xy_max |
(numeric) maximum desired expansion of the polygon (default: 2000) |
A list with slots 'x' and 'y' containing numeric coordinates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.