distribute: distribute

View source: R/distribute.R

distributeR Documentation

distribute

Description

This function spatially distributes a set of sf features.

Usage

distribute(
  x,
  preserve.parameters = T,
  max.features = 240,
  method = "regulargrid",
  label.points = F,
  label.pos = 1,
  ...
)

Arguments

x

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

preserve.parameters

Whether to preserve non-geometry parameters; default TRUE (deprecated).

max.features

Maximum features to compare; default=240.

method

Method used to distribute features; default and only functioning method is "regulargrid".

label.points

If TRUE, will add two columns label_x and label_y to resulting sf data.frame based on label.pos; default FALSE.

label.pos

Position value for point at edge of regular grid squares, 0=centre, 1=top, 2=right, 3=bottom, 4=left; default=0.

Details

The spatial features should be aligned around 0,0 for meaningful results. First use 'converge' to bring together diversely distributed polygons around a single origin. Use 'align' to align different sets of simple spatial features around the origin.

Note that to rotate or scale features individually, you can use the 'rotate' and 'scale' methods with a vector parameters.

Value

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

##

See Also

converge


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