PointSim: Simulate a spatial point process or sequence

Description Usage Arguments Value Author(s) Examples

View source: R/PointSim.R

Description

Creates a new Poisson Point Process in a spacejamr object

Usage

1

Arguments

points

the number of points to simulate

window

a spacejamr object to use as the spatial extent

type

the type of simulation. poisson_process simulates a spatial Poisson process. halton simulates a Halton sequence where the maximal number of simulated points is the first argument.

seed

an optional seed

Value

An object of class PointSim that contains a geographical window of class 'owin'. Within this window are four objects. n: the number of simulated points. x: the x coordinates of the simulated points. y: the y coordinates of the simulated points. markformat: an empty place holder.

Author(s)

Darren Colby
Email: dscolby17@gmail.com

Examples

1
2
3
4
5
# Load spacejamr object
data("RI")

# Poisson process
ri_points <- PointSim(points = 10, window = RI, seed = 42)

spacejamr documentation built on Sept. 13, 2021, 1:06 a.m.