poly_transform_shape: poly_transform_shape

View source: R/polygon_centroids.R

poly_transform_shapeR Documentation

poly_transform_shape

Description

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.

Usage

poly_transform_shape(poly, xy_max = 2000)

Arguments

poly

(list) named list of 'x' and 'y' coordinates of the polygon

xy_max

(numeric) maximum desired expansion of the polygon (default: 2000)

Value

A list with slots 'x' and 'y' containing numeric coordinates


m-jahn/WeightedTreemaps documentation built on Dec. 15, 2024, 10:09 a.m.