Example: homogeneous

our_lambda <- 100
our_window <- owin(xrange = c(0, 1), yrange = c(0, 2))

The size of the observation window is 2 square units, so the expected number of events is 2 * 100 = 200 events.

simulated_hom <- rpoispp(lambda = our_lambda, win = our_window)
simulated_hom
## Planar point pattern: 211 points
## window: rectangle = [0, 1] x [0, 2] units