normalize: normalize

View source: R/normalize.R

normalizeR Documentation

normalize

Description

NOT YET IMPLEMENTED This function normalizes the scale of sf features, normally polygons. By default the scaled parameter is the polygon *area*, so that each feature has an area of 'scale' m2, whatever the actual shape of the polygon.

Usage

normalize(x, target = 1, method = "area")

Arguments

x

An sf object, already processed with 'converge', to be transformed to normalized scale; REQUIRED.

target

Target value to be normalized to, usually a single numeric, but can also be a vector of numeric target values of equal length to number of features in x; value meaning depends on method, e.g. square metres for areal, or metres for linear methods; default=1.

method

Method of scaling: "area", "width", "height", "maxlinear"; default="area".

Details

Features should have first been converged into a single comparable scale, using the 'converge' function.

Value

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

See Also

converge, align, normalize, scale, distribute


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