st_scale: st_scale

View source: R/scale.R

st_scaleR Documentation

st_scale

Description

NOT YET IMPLEMENTED This function scales the size of sf features around coordinate origin or centroid, by either linear or areal amounts.

Usage

st_scale(
  x,
  scale = 1,
  xscale = scale,
  yscale = scale,
  method = "linear",
  origin = "centroid"
)

Arguments

x

An sf object, to be transformed in scale; REQUIRED.

scale

Scaling factor to be used, either a single numeric or a vector of numeric scales of equal length to number of features in x; superceded by xscale or yscale; default=1.

xscale

X-axis scaling factor to be used, either a single numeric or a vector of numeric scales of equal length to number of features in x; default=scale.

yscale

Y-axis scaling factor to be used, either a single numeric or a vector of numeric scales of equal length to number of features in x; default=scale.

method

Method of scaling: "linear", "area"; default="linear".

Value

An sf object containing one or more features

See Also

converge, align, normalize, distribute


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