Learn R Programming

WeightedTreemaps (version 0.1.4)

poly_transform_shape: 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)

Value

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

Arguments

poly

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

xy_max

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