p2d: Polygon to Disk

View source: R/p2d.R

p2dR Documentation

Polygon to Disk

Description

Map the data within a polygon to the unit disk via Schwarz-Christoffel conformal mapping.

Usage

p2d(.data, pg = sccm::convex_hull(.data), ...)

Arguments

.data

the data set to map to the disk

pg

the polygon containing the data, the default is the convex hull about .data.

...

additional arguments passed to scmap

Value

a sccm_p2d object, a list with the following elements:

mapped

a n by 2 matrix with the (x, y) coordinates of the mapped data.

polygon

The polygon the .data was contained in

data

The original data

mapping

the Schwarz-Christoffel mapping used.

See Also

scmap d2p p2p


dewittpe/sccm documentation built on Feb. 2, 2024, 5:25 p.m.