Learn R Programming

spatstat.geom (version 3.7-0)

grow.boxx: Add margins to box in any dimension

Description

Adds a margin to a box of class boxx.

Usage

grow.boxx(W, left, right = left)
 grow.box3(W, left, right = left)

Arguments

Value

Another object of the same class "boxx" or "box3"

representing the window after margins are added.

See Also

grow.rectangle, boxx, box3

Examples

Run this code
  w <- boxx(c(0,10), c(0,10), c(0,10), c(0,10))
  # add a margin of size 1 on both sides in all four dimensions
  b12 <- grow.boxx(w, 1)

  # add margin of size 2 at left, and margin of size 3 at right,
  # in each dimension.
  v <- grow.boxx(w, 2, 3)

Run the code above in your browser using DataLab