rotawin: Rotate Individual Polygons

View source: R/rotawin.R

rotawinR Documentation

Rotate Individual Polygons

Description

Randomly rotates individual polygons around their centroids.

Usage

rotawin(ventana)

Arguments

ventana

A multiple-polygon window with the format owin of spatstat.

Details

rotawin applies an independent random rotation to each of the polygons in a multiple-polygon owin object.

Value

rotawin returns the original owin object with the individual polygons randomly rotated.

Author(s)

Marcelino de la Cruz Rot

Examples

data(Astragalus)
plot(Astragalus)
plot(rotawin(Astragalus), add=TRUE, border=2)


overlapptest documentation built on April 23, 2023, 1:16 a.m.