# stienen: Stienen Diagram

### Description

Draw the Stienen diagram of a point pattern, or compute the region covered by the Stienen diagram.

### Usage

 ```1 2``` ```stienen(X, ..., bg = "grey", border = list(bg = NULL)) stienenSet(X, edge=TRUE) ```

### Arguments

 `X` Point pattern (object of class `"ppp"`). `...` Arguments passed to `plot.ppp` to control the plot. `bg` Fill colour for circles. `border` Either a list of arguments passed to `plot.ppp` to control the display of circles at the border of the diagram, or the value `FALSE` indicating that the border circles should not be plotted. `edge` Logical value indicating whether to include the circles at the border of the diagram.

### Details

The Stienen diagram of a point pattern (Stienen, 1982) is formed by drawing a circle around each point of the pattern, with diameter equal to the nearest-neighbour distance for that point. These circles do not overlap. If two points are nearest neighbours of each other, then the corresponding circles touch.

`stienenSet(X)` computes the union of these circles and returns it as a window (object of class `"owin"`).

`stienen(X)` generates a plot of the Stienen diagram of the point pattern `X`. By default, circles are shaded in grey if they lie inside the window of `X`, and are not shaded otherwise.

### Value

The plotting function `stienen` returns `NULL`.

The return value of `stienenSet` is a window (object of class `"owin"`).

and \ege

### References

Stienen, H. (1982) Die Vergroeberung von Karbiden in reinen Eisen-Kohlenstoff Staehlen. Dissertation, RWTH Aachen.

`nndist`, `plot.ppp`

### Examples

 ```1 2 3``` ``` Y <- stienenSet(cells) stienen(redwood) stienen(redwood, border=list(bg=NULL, lwd=2, cols="red")) ```

Search within the spatstat package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.