poly_transform_shape {WeightedTreemaps}R 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


[Package WeightedTreemaps version 0.1.2 Index]