Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

methods.distfun

Geometrical Operations for Distance Functions


Description

Methods for objects of the class "distfun".

Usage

## S3 method for class 'distfun'
shift(X, ...)

## S3 method for class 'distfun'
rotate(X, ...)

## S3 method for class 'distfun'
scalardilate(X, ...)

## S3 method for class 'distfun'
affine(X, ...)

## S3 method for class 'distfun'
flipxy(X)

## S3 method for class 'distfun'
reflect(X)

## S3 method for class 'distfun'
rescale(X, s, unitname)

Arguments

X

Object of class "distfun" representing the distance function of a spatial object.

...

Arguments passed to the next method for the geometrical operation. See Details.

s, unitname

Arguments passed to the next method for rescale.

Details

These are methods for the generic functions shift, rotate, scalardilate, affine, flipxy and reflect which perform geometrical operations on spatial objects, and for the generic rescale which changes the unit of length.

The argument X should be an object of class "distfun" representing the distance function of a spatial object Y. Objects of class "distfun" are created by distfun.

The methods apply the specified geometrical transformation to the original object Y, producing a new object Z of the same type as Y. They then create a new distfun object representing the distance function of Z.

Value

Another object of class "distfun".

Author(s)

Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner r.turner@auckland.ac.nz and Ege Rubak rubak@math.aau.dk.

See Also

Examples

(f <- distfun(letterR))
   plot(f)
   flipxy(f)
   shift(f, origin="midpoint")
   plot(rotate(f, angle=pi/2))

   (g <- distfun(lansing))
   rescale(g)

spatstat.geom

Geometrical Functionality of the 'spatstat' Family

v2.1-0
GPL (>= 2)
Authors
Adrian Baddeley [aut, cre], Rolf Turner [aut], Ege Rubak [aut], Tilman Davies [ctb], Ute Hahn [ctb], Abdollah Jalilian [ctb], Sebastian Meyer [ctb], Suman Rakshit [ctb], Dominic Schuhmacher [ctb], Rasmus Waagepetersen [ctb]
Initial release
2021-04-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.