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)
A list with slots 'x' and 'y' containing numeric coordinates
(list) named list of 'x' and 'y' coordinates of the polygon
(numeric) maximum desired expansion of the polygon (default: 2000)