converge: converge

View source: R/converge.R

convergeR Documentation

converge

Description

This function finds the centroid of a set of sf-based features and reprojects them so that each feature's centroid lies at the centre (0,0) of an arbitrary metre-based Mercator projection. The resulting features are thus projected overlapping at the same scale,. Note that the resulting sf object has no CRS.

Usage

converge(x, z = NULL, by.feature = T, combine = F)

Arguments

x

An sf-compatible feature layer, often containing polygons whose size is to be visually compared; REQUIRED.

z

An sf-compatible feature layer, the target polygons by which x will be converged

by.feature

Whether to reproject by single features by individual feature centroids, T, or reproject all features by a single centroid of the union of all features, F; default=TRUE.

combine

Combine multiple geometries into one, using st_combine; default=F.

Details

To visually distribute the resulting features, use the 'distribute' function.

Value

An sf object containing one or more features (with no defined CRS)

See Also

distribute


tcwilkinson/morphogram documentation built on Nov. 20, 2022, 3:45 a.m.