`rcell(win=square(1), nx, ny=nx, dx=NULL, dy=NULL)`

dx

Width of the cells. Incompatible with

`nx`

.dy

Height of the cells.
Incompatible with

`ny`

.nx

Number of columns of cells in the window.
Incompatible with

`dx`

.ny

Number of rows of cells in the window.
Incompatible with

`dy`

.- A point pattern (object of class
`"ppp"`

).

In the function `rcell`

the tile dimensions are determined
by the quantities `dx, dy`

if they are present. If they are absent, then the grid spacing is
determined so that there will be `nx`

columns and `ny`

rows
of tiles in the bounding rectangle of `win`

.
The cell process is then generated in these tiles.

Some of the resulting random points may lie outside the window `win`

:
if they do, they are deleted.
The result is a point pattern inside the window `win`

.

`rstrat`

,
`rsyst`

,
`runifpoint`

,
`Kest`

```
X <- rcell(nx=15)
plot(X)
plot(Kest(X))
```

Run the code above in your browser using DataCamp Workspace