# square

From spatstat v1.5-5
by Adrian Baddeley

##### Square Window

Creates a square window

- Keywords
- spatial

##### Usage

```
square(r=1)
unit.square()
```

##### Arguments

- r
- The side length of the square.

##### Details

`square`

is a shortcut for creating a window object
representing the square
$[0,r] \times [0,r]$.
It is equivalent to the command
`owin(c(0,r),c(0,r))`

.

`unit.square`

creates the unit square
$[0,1] \times [0,1]$.
It is equivalent to
`square(1)`

or `square()`

or `owin(c(0,1),c(0,1))`

.

These commands are included mainly to improve the readability of some code.

##### Value

- An object of class
`"owin"`

(see`owin.object`

) specifying a window.

##### See Also

##### Examples

`W <- square(10)`

*Documentation reproduced from package spatstat, version 1.5-5, License: GPL version 2 or newer*

### Community examples

Looks like there are no examples yet.